Quantcast
Channel: SCN : Popular Discussions - B2B Integration with SAP Process Orchestration
Viewing all articles
Browse latest Browse all 1788

Issue with OFTP adapter: Could not apply encryption: com.sap.aii.adapter.oftp2.ra.xi.integration.EncryptionException: Could not Encrypt Message: org.bouncycastle.cms.CMSException: key invalid in message

$
0
0

Dear Experts,

 

I'm doing a POC with the new OFTP adapter. I'm using opensource mendelson OFTP for this purpose. For the POC, to begin with I have used the below links as reference.

 

http://wiki.sdn.sap.com/wiki/display/XI/Generating+OFTP+Test+Keys+with+Extended+Key+Usage

http://wiki.sdn.sap.com/wiki/display/XI/Importing+OFTP+Test+Keys+into+NWA+Key+Storage

 

As mentioned, I have created a Root CA, Intermediate CA and two separate key pairs, one for own PI server and one for Mendelson installed on my local machine.

 

I have modified the key storage of mendelson to include this new key pair for local machine and the certificate of own server. I'm using Keystore explorer for the same.

 

I have the scenario set up completely. I'm using OFTP on the receiver side. Finally when I send a file, the channel is throwing the below error.

 

 

 

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.RuntimeException: Could not apply encryption: com.sap.aii.adapter.oftp2.ra.xi.integration.EncryptionException: Could not Encrypt Message: org.bouncycastle.cms.CMSException: key invalid in message.

 

I'm unable to proceed any further. As I understand, from the error I believe the encryption is failing because of a wrong key. For testing purpose, i removed use encryption feature in the channel. Now I'm faced with the below error.

 

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: Could not connect: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier

 

Request experts to please share their views to let me know where am i going wrong.

 

Thanks a lot

 

Regards

Varun


Viewing all articles
Browse latest Browse all 1788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>