Link to home
Start Free TrialLog in
Avatar of ipsec600
ipsec600

asked on

GPA encryption command

I have working to upload weekly a CSV file in the FTP location of the vendor, and vendor provided me the public key to perform the encryption and the FTP user name and password. My FTP script is working perfectly, I am able to connect in the vendor FTP location without any issue. But the problem is I am getting the following error while I am trying to encrypt the CSV file. From graphical window of GPA, the public key is working and it is encrypting the CSV file but I am trying to make it a script to do the encryption. Please advise.
C:\>gpg -v --import "C:\publickKeyofvendor" --output C:\data.csv.gpg --encrypt C:\Data.csv
gpg: can't open `--output': No such file or directory
gpg: [don't know]: invalid packet (ctb=55)
gpg: read_block: read error: Invalid packet
gpg: import from `C:\\Data.csv.gpg' failed: Invalid keyring
gpg: can't open `--encrypt': No such file or directory
gpg: no valid OpenPGP data found.
gpg: Total number processed: 1
gpg:              unchanged: 1
My objective is to using the vendor provided public key, I will encrypt the CSV file and encrypted CSV file will be uploaded to vendor FTP location.
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ipsec600
ipsec600

ASKER

Excellent thank you NVIT, it works as expected.
Thanks for your update, ipsec600. I'm glad to help. Have a good one.