on 06-29-2016 3:07 PM
Hi Experts,
We are facing the following error while decrypting the files using PGP
Error: java.lang.NullPointerException: while trying to invoke the method org.bouncycastle.openpgp.PGPPrivateKey.getKey() of a null object loaded from local variable 'privKey'
we had tried to move the certificates to the other folder and enabled the key root path
we have restarted our Adapter engine
We had validated the certificates and they are the same
Please find the module configuration in the screenshot attached
Can you please help us in debugging the issue?
Thanks in advance for your valuable responses
Many Thanks:
T. Sai Chaithanya
SAP PO/PI
Is the directory where the Private Key is kept accessible by the SIDADM user? Ask your basis team to check if the SIDADM used has access to this directory and file. It could be a case of file permissions!..
Also if your PI Server has multiple application instances, make sure this is accessible from all application servers..
Regards
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Issue has been fixed.
we had moved the certificates to new folder and changed the keyrootpath.
Now the channels are polling succesfully.
Thanks all for your valuable suggestions
Many Thanks:
T. Sai Chaithanya
SAP PO/PI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai Chaithanya,
null object loaded from private key. I could have told exactly the issue if the name of key was not hidden still I will guess it.
1. You need to have 2 keys with you (2 files which are PGP keys).
2. Your private key (ownPrivateKey) to decrypt the file and partnerPublicKey for verifying the signature.
3. Now ownPrivateKey that is the private key you used in module must be with you and partner public key must be given by client.
I hope you have all things till point 3.
Now you have the paramet keyRootPath
4. Both the privateKey (which you have) and public key (which client has given) must be copied/placed at the path mentioned in keyRootPath ( there only the module will search for the key).
If the point 4 is also completed and you are sure about it then, please see have you used the name of the key correctly in module.
5. if the name of privateKey is privKey.asc or privKey.txt or privKey.key or something be sure you give the complete name along with extension in the channel module. The same applies for public key
Regards,
Vikas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sai,
If am not wrong you need upload the keys for encryption and mention the same path in the channel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.