on 11-17-2014 1:19 AM
Hi,
I am trying to send a file to a SFTP receiver. I am getting the following error. Checked the SDN, could not able to find information.
exception caught with cause javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: >>
Description: putFile: Could not connect to remote host;
Reason: SFTP client was not able to connect: com.seeburger.sftp.exception.ConfigurationException: Could not create an authentication client!>>
Details: putFile: Could not connect to remote host;
SendingStatus: NOT_TRANSMITTED>>
FaultCategory: COMMUNICATION_ERROR>
>Retryable: false>>
Fatal: false, >>
Checked the seeburger documentation and blog
Any help is greatly appreciated
Thank you
Raj A. .
Hi,
I have enabled the seeburger logs. It seems the adapter is having issues in reading the key (KKTS_RSA) from the key store USER\VENDOR_KEY_AUTH.
I do have a user keystore view with name VENDOR_KEY_AUTH. This view got the private key with name KKTS_RSA.
So I provided the key in CC as USER\VENDOR_KEY_AUTH\KKTS_RSA
Can some one confirm how this key field should look like.
1) USER\VENDOR_KEY_AUTH\KKTS_RSA
2) USER/VENDOR_KEY_AUTH/KKTS_RSA (forward slash)
3) USERS\VENDOR_KEY_AUTH\KKTS_RSA (USERS)
4) USERS/VENDOR_KEY_AUTH/KKTS_RSA (USERS)
Thank you
Raj A
Caused by: java.security.KeyException: The keystore USER\VENDOR_KEY_AUTH does not contain an alias named KKTS_RSA.
SFTP client was not able to connect: com.seeburger.sftp.exception.ConfigurationException: Could not create an authentication client! Caused by: com.seeburger.sftp.exception.ConfigurationException: Could not create an authentication client!
at com.seeburger.sftp.util.SFTPConfigurationUtil.loadAuthenticationConfig(SFTPConfigurationUtil.java:312)
at com.seeburger.sftp.pool.SFTPConnectionPool.connect(SFTPConnectionPool.java:793)
at com.seeburger.sftp.pool.SFTPConnectionPool.getConnection(SFTPConnectionPool.java:320)
at com.seeburger.sftp.client.SFTPClient.connect(SFTPClient.java:2180)
at com.seeburger.sftp.client.SFTPClient.processSendFileRequest(SFTPClient.java:887)
at com.seeburger.sftp.client.SFTPClient.processRequest(SFTPClient.java:630)
at com.seeburger.sftp.SFTPProcessor.executeOperation(SFTPProcessor.java:436)
at com.seeburger.sftp.SFTPProcessor.execute(SFTPProcessor.java:108)
at com.seeburger.frame.core.FrameWorkListener.syncNewData(FrameWorkListener.java:530)
at com.seeburger.xi.connector.fw.SynchronousTaskExecutor.executeTask(SynchronousTaskExecutor.java:40)
at com.seeburger.xi.connector.queue.QueueProcessorImpl.doOutboundTransmission(QueueProcessorImpl.java:1932)
at com.seeburger.xi.connector.queue.QueueProcessorImpl.executeAsynchronously(QueueProcessorImpl.java:1194)
at com.seeburger.xi.connector.queue.QueueProcessorImpl.execute(QueueProcessorImpl.java:673)
at com.seeburger.xi.connector.queue.QueueProcessorImpl.process(QueueProcessorImpl.java:700)
at com.seeburger.xi.connector.queue.QueueProcessorImpl.run(QueueProcessorImpl.java:254)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:185)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:218)
Caused by: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: java.security.PrivilegedActionException: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve key pair USER\VENDOR_KEY_AUTH\KKTS_RSA.
at com.seeburger.xi.api.security.XICryptoApi.constructException(XICryptoApi.java:1265)
at com.seeburger.xi.api.security.XICryptoApi.getKeyPairNew(XICryptoApi.java:489)
at com.seeburger.xi.api.security.XICryptoApi.getKeyPair(XICryptoApi.java:415)
at com.seeburger.sftp.util.SFTPConfigurationUtil.loadAuthenticationConfig(SFTPConfigurationUtil.java:262)
... 18 more
Caused by: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve key pair USER\VENDOR_KEY_AUTH\KKTS_RSA.
at com.seeburger.ksm.cryptoapi.impl.CryptoApi.getKeyPair(CryptoApi.java:413)
at com.seeburger.ksm.cryptoapi.impl.CryptoApi.getKeyPair(CryptoApi.java:384)
at com.seeburger.xi.api.security.XICryptoApi$8.run(XICryptoApi.java:476)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at com.seeburger.xi.api.security.XICryptoApi.getKeyPairNew(XICryptoApi.java:469)
... 20 more
Caused by: java.security.KeyException: The keystore USER\VENDOR_KEY_AUTH does not contain an alias named KKTS_RSA.
at com.seeburger.ksm.common.tools.KeyStoreManager.exportPrivateKey(KeyStoreManager.java:129)
at com.seeburger.ksm.common.tools.KeyStoreManager.exportKeyPair(KeyStoreManager.java:165)
at com.seeburger.ksm.cryptoapi.impl.CryptoApi.getKeyPair(CryptoApi.java:408)
... 25 more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for every one..
Issue: Key exists in Key store view. But system is not able to retrieve.
Reason: seesftp user not have authorization to read the view .
Useful blog: Stefan's blog really helped me to get the detailed log information. Thank you Stefan.
Thanks
Raj A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.