We are migrating the 10.2 version to the 10.15 version.
There was integration with the partner systems on GnuPG encryption and decryption.
10.2 and Windows server having the GnuPG version and the integration creates the PGPEncrpt.bat file, and the Java Shell Command service executes the .bat file and does the encryption as below,
File contains gpg --recipient “recipientID” --armor --always-trust --output “encryptedFileName.dat” --encrypt “filenametoEncrypt”
This is working in the 10.2 version.
In the migration server 10.15 and Windows server env, I copied the pubring.gpg and secring.gpg to the home user directory.
pubring. gpg contains the client’s public. Asc and partner public.asc details & Secring. gpg contains the client’s security file details.
I can encrypt the file using the PowerShell in the migration Windows server. But from the webMethods server java shell command, it is showing an error like,
gpg: “Recipient ID”: skipped: No public key
gpg: “Filename”: encryption failed: No public key
I validated using the gpg --list-keys & gpg --list-secret-keys. It shows pub,uid, and sub for client and partner, and in the secret keys, it shows the sec, uid, ssb.
I also refreshed the keys; PowerShell encryption is working, and webMethods java service, the error is the same.
gpg: “Recipient ID”: skipped: No public key
gpg: “Filename”: encryption failed: No public key
I created newly generated keys; the error is the same.
Please help to resolve the issue with executing the .bat file in the 10.15 server.
Thanks,