We are using pgp command line version 10.1.0.52 . I am not very familiar with encryption and how keys are working
We are using pgm to encrypt files going to a financial institution. I need to set up a new encryption / ftp process using a new key provided by the recipient.
Question 1: The key provided by the recipent is an .asc file. Do I need to decrypt or import in order to use this key or can I use it as is in the ecryption command. I did an import and it gave me a <pgp.xyz.com> should I use this in my encryption instead?
Question 2. When I run the encryption command in a dos it creates an .asc file form a .txt file so it looks like the encryption is working. Does this look correct?
C:\>pgp --encrypt "C:\Users\Public\Documents\Upgrade\Test.txt" --recipient "
pgp@xyz.com" --output "C:\Users\Public\Documents\\Test.asc"
C:\Users\Public\Documents\Test.txt:encrypt (0:output file C:\Users\P
ublic\Documents\Test.asc)
Question 3. When I put the the commands in a vb script it does not work and no .asc file is created. Could this be that it does not find certain objects that it needs? Does the pgp key need to be in a specif place etc etc
command = "pgp --import C:\Users\Public\Documents\Recipient.asc"
command = "pgp --encrypt """ & fromFile & """ --recipient " & """pgp@xyz.com""" & " --output """ &toFile& """"
Thank you for reading this.