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.
Windows BatchEncryptionScripting Languages

Avatar of undefined
Last Comment
NVIT

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
NVIT

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ipsec600

ASKER
Excellent thank you NVIT, it works as expected.
NVIT

Thanks for your update, ipsec600. I'm glad to help. Have a good one.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes