I’m using ftp to get a pgp-encrypted file from a partner. I have a webMethods flow that invokes pub.client:ftp and it gets the file. I then use pub.file:getFile to read the contents in, and pub.string:bytesToString to turn the “body” document into a string. I then use the pub.openpgp:decrypt service with that text as input, and it appears to try to run this command:
gpg --homedir e:\webMethods6\IntegrationServer\gnupg --no-tty --armor --yes --decrypt
with the string is the “input.” but it gives this error:
gpg: encrypted with RSA key, ID AF9C9841
gpg: decryption failed: secret key not available
gpg: encrypted with RSA key, ID AF9C9841
gpg: encrypted with RSA key, ID AF9C9841
gpg: decryption failed: secret key not available
however, if I run the command from command line with a file as input…
gpg --homedir e:\webMethods6\IntegrationServer\gnupg --no-tty --armor --yes --decrypt PGPFILE
where PGPFILE is the file, it decrypts fine. so why doesn’t gpg recognize the secret key when it’s invoked from webMethods openpgp package?
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services