cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP receiver channel error

Former Member
0 Kudos

Hello,

Already gone through few post on SCN but didn't help as such.

I am using SFTP adapter with authentication method as 'Private Key'. Certificate has been imported and using the same....

But i am getting below error while testing the scenario...

Exception caught by adapter framework: java.security.KeyStoreException: KeyStoreManagerImplSystemLevel in Method: getISsfProfile( KeyStore, String, String ). A KeyStoreException encountered: A KeyStore-Exception in Method: run(). Message: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: A KeyStore-Exception in Method: run(). Message: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.

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: javax.resource.ResourceException: java.security.KeyStoreException: KeyStoreManagerImplSystemLevel in Method: getISsfProfile( KeyStore, String, String ). A KeyStoreException encountered: A KeyStore-Exception in Method: run(). Message: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: A KeyStore-Exception in Method: run(). Message: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.. To-String: java.security.KeyStoreException: KeyStoreException in Method: getPrivateKey( KeyStore, String, String ). The requested keystore type is not available in the default provider package or any of the other provider packages that were searched.

Not able to understand what exactly went wrong, can anyone please help regarding the above error! Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

vicky20691
Active Contributor
0 Kudos

Check the part 1 and 2 of the above blog and please ensure conversion to PKCS 8/12 is done properly before importing to NWA

Regards,

Vikas

Answers (6)

Answers (6)

Former Member
0 Kudos

Thanks all for your kind help.

Sorry for delayed response.

In my case Basis guy had imported the wrong certificates, problem has been resolved after proper certificate import.

Former Member
0 Kudos

Hello all,

Thanks for your time and given suggestions.

I will check all of the above mentioned points and will get back to you guys.Thanks!

Regards,

Aksahy

Former Member
0 Kudos

Hello Akshay,

you have to ensure the keystore entry for this scenario is maintained. The error is pointing towards a missing keystore type. Please see the below two help articles for further information:
Managing Entries - http://help.sap.com/saphelp_nw74/helpdata/en/24/cff73dbc570302e10000000a114084/content.htm
Creating a Key Pair and Public-Key Certificate - http://help.sap.com/saphelp_nw74/helpdata/en/36/7627aa3fe440369150a434f8137eda/content.htm

Best regards,
Vadym

apu_das2
Active Contributor
0 Kudos

Hi Akshay,

The problem is in your SSL key.

First check whether Private and public key both are in keystore or not. If its there then check in your CC that you have used exact name of your keystore view and keystore entry.

Public key is shared with SFTP vendor after converting this to SSH.

Lastly you can try with XPI Inspector to get more details on this.

Thanks,

Apu

iaki_vila
Active Contributor
0 Kudos

Hi Akshay,

I think the key of the issue is in this part of your exception: "The requested keystore type is not available in the default provider package or any of the other provider packages that were searched."

There a different types of keystores (Different types of keystore in Java -- Overview | Pixelstech.net) which support different algorithms.Are you sure the certificate is supported by PI keystorage: (X.509, PKCS#12 Key Pair, PKCS#8 Key Pair). Are you selected the right one?.

Have you checked your Private Key View, Private Key Entry right (Configuring the SFTP Sender Channel - SAP NetWeaver Process Integration, secure connectivity add-on ...)?

Regards.

Former Member
0 Kudos

Thanks for your reply Iñaki !!

We have received a .PPK file from client and basis team have imported the same as per the process mentioned in the below link.

Generating SSH Keys for SFTP Adapters - Type 1 - Process Integration - SCN Wiki

And then after that i have imported the same in SFTP channel as 'Private key view' & 'Private Key Entry'.

Please suggest if in case i have missed something.

Regards,

Akshay

Harish
Active Contributor
0 Kudos

Hi Akshay,

Please check if the below SAP note is applicable for your version

1780149 - Register and unregister BouncyCastle provider