Unable to fix the getPrivateKeys service, getting the error “Private key ring is empty” while running testDecryptFile service.
[I]getPrivateKeys is only returning “privateKeyRing” as per the GitHub code. I fixed this service to return all the output parameters by changing the code entirely(attached), still testDecryptFile is throwing the same error. Can someone help me with this? modifiedgetPrivateKeys.java (3.22 KB)
Is your private key in a key file or keyring file?
It can’t be both, so these two lines:
ringSecret = PGPKeyReader.readSecretKeyRing(path);
keySecret = PGPKeyReader.readSecretKey(path);
only one should be called.
Actually the only requirement of this java service is to get the secretKeyRing. I modified the service only to get this, still the decryptandVerify service in throws the error “Private key ring is empty”.
We are facing the same issue for both readPublicKeys and readPrivateKeys services.
We are getting the below error :
Service ‘pgp.services.keys.readPublicKeys’ is not operational.To run this service,first compile the Java source.
Make ensure if your java code is complied and deployed.
Right click and Edit the service [ just enter tab and delete it ]. java service need of compiling before deployed to target server . Edit and saving the service will compile for you.