I have a sequence of scripts which downloads PGP files from a FTP server. I then unzip these files with a private key using PGPKeys. The unzipped files are then picked up by a SQL Server job which appends the data onto our database. I'd like to automate the entire process. Is there anyway to unzip a PGP locked file using shell scripting (either Linux or Windows)?
Yes, GPG. In your case, it's just gpg -d filename
(or just gpg -d
to read from stdin).
And, what you probably wanted to say is decrypt instead of unzip and encrypted instead of locked.