cancel
Showing results for 
Search instead for 
Did you mean: 

exception caught with message Error reading private keyring '

Former Member
0 Kudos

Hi All,

Can you some one explain why that error is coming and what is the solution to resolve that one.

I have created a pass through scenario in Pi 7.1,  And we used we are sending file to user with encrypted format. Basis people are created and placed the keys in below path.


E:\usr\sap\FPD\DVEBMGS00\sec



But when i am trying to test it throwing   Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Error reading private keyring 'E:\usr\sap\FPD\DVEBMGS00\sec*** 





PLease suggest.



Thank you in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186851
Active Contributor
0 Kudos

Hello Raj,

Its because of key. Check whether basis has imported the valid key.

Former Member
0 Kudos

Hi Raghuraman,

thank you for your response.

I have one doubt here, i have created PGP keys using https://pgpkeygen.com/.

Can i use above keys to encrypt.

Please can you explain the process how it will work. And that will help to me a lot.

thank you in advance.

engswee
Active Contributor
0 Kudos

Try generating the keys following the wiki below instead.

Generating ASCII Armored PGP Key Pairs - Process Integration - SCN Wiki

Former Member
0 Kudos

Hi

With that above method only it is generating Public key. How to generate private key.

thanks

engswee
Active Contributor
0 Kudos

Please read through the wiki properly, it generates a key pair, i.e. public and private. It's really written very clearly.

Former Member
0 Kudos

Hello Raj ,

There are some other websites also from which you can generate keys.

https://wp2pgpmail.com/pgp-key-generator/

PGP Key Generator - iGolder

If you still face the same issue with different keys then may be you have to update the JCE policy as per blog :

Thanks

Former Member
0 Kudos

Hello Gaurav,

thank you for prompt response.

now i have created the public and private keys, And loaded in   usr/sap/<System ID>/<Instance ID>/sec

But while converting to encryption it throwing below error. Any thing is missing from my side, is yes please suggest to resolve.

Thanks...

engswee
Active Contributor
0 Kudos

You need to provide the name of the keys in parameter partnerPublicKey and ownPrivateKey and pwdOwnPrivateKey for the password of the private key. It's showing *** so my guess is it might not be configured.

Check the following blog on how it's done

Please provide screenshots on your config if you still can't resolve it.

Former Member
0 Kudos

Hi

I have configured all the information except PatnerpublicKey, because first i want to check whether both PGP keys are working or not.

If those worked i will share public key with user and then i ask the user  patnerpublic key.

Plz correct me if i am wrong.

Former Member
0 Kudos

Hello ,

Can you please paste the screenshot of your SFTP PGP module configuration?

As per the logs it is showing Key root path is not set.Can you please keep the keys in a different directory and then add the location in the module configuration and then try??

There can be some access related issue to the standard location.Use some other path which is currently in use and accessible.

Thanks

Former Member
0 Kudos

Hi

below is my config. is that really access issue because i tried with stranded path also (E:\usr\sap\FPD\DVEBMGS00\sec) thats why i changed to new location

Thanks

Former Member
0 Kudos

Hello Raj ,

The keys should be kept somewhere on the PI server path and not on the desktop.

Thanks.

Former Member
0 Kudos

Hi

Yes, i tried with other private key that already used in other interface. With that partner public key it is showing successfully DLVD.

but when i checked in SFTP server with Filezilla. there is no files placed in SFTP server.

message monitoring also showing success column.

Plz what would be the reason for not placing or not showing,

former_member186851
Active Contributor
0 Kudos

Hello Raj,

check whether you have write access to the folder by using Ping option.

Also check if there is any job running in SFTP which is deleting the file.