cancel
Showing results for 
Search instead for 
Did you mean: 

REST Receiver Adapter HTTPS Exception

former_member211899
Participant
0 Kudos

Hi Experts,

I am facing an issue while trying to ping a REST URL via HTTPS.

The HTTP Part is perfect and i get the desired response.

Also HTTPS works when tested from an outside app (say SwaggerUI or Google Postman), i.e. there is no firewall block at the receiver side.

When I login to the VM of my PI Server and do a telnet on port 443 for the target URL, there is no problem in connecting. From within the VM as well, I am able to send a request and receive a response via Google Postman etc.

The connection via HTTPS seems to fail only when i test using the SAP PI REST Receiver Adapter.

The error is as below :

The hidden part is the URL of the target server.

Is there any additional settings I am missing at the REST Adapter level or PI level to allow HTTPS Communication ?

I am on SAP PI 7.4 SP12 (Dual Stack Installation).

Requesting your inputs in cracking this one.

Regards,

Krishna

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi,

The issue seems to be with the payload. Please compare the payload with the expected format and see if there is an end of file indicator which is missing.

former_member211899
Participant
0 Kudos

Hi Carlos,

Thanks for your reply.

The SSL Certificate Part is done. I have already downloaded the Root, Inter and Leaf certificates and uploaded in the NWA.

I had also done a check using XPI Inspector.

The SSL Handshake is happening without issues. The aforesaid error is coming after the handshake is successful.

The XPI Inspector Screenshot has been attached for reference.

Regards,

Krishna

former_member608139
Active Participant
0 Kudos

Every connection over HTTPs protocol need a certificate chain used during a "handshake" process, when you try a test using SOAPUI, Postman, etc, these tools download the certificate automatically and use this certificate to connect. SAP PI cannot do this automatically, you will need access the webservice manually by a browser (Chrome or Firefox) and download the certificate, after this, install these certificates in NWA inside the KeyView TrustedCAs.