Skip to Content
0
Former Member
Jul 25, 2014 at 09:13 AM

SSL javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure<

1768 Views

Hi all,

B1if version: 1.19.3

I need to make a connection to a ssl webservice.

For this I use the Call HTTP atom, because then I can control the complete payload (header + body) of the soap message.

I imported the certificate in a truststore which I configured in the control center.

After running the call, I get following error:

<Payload Role="C" id="atom2" statusNo="HTTP" statusMsg="" reference="atom3" sysid="" payload="atom3" throwException="false">
  <http.header />
     <httaError xmlns="urn:com.sap.b1i.xcellerator:upltdoc" HTTPcode="" HTTPmsg="">
       <exceptionMsg>javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure</exceptionMsg>
       <returnData />
  </httaError>
  </Payload>

My connection setup is as followed (left out sensitive info offcourse)

<connect>
  <destProtocol>https</destProtocol>
  <destHost>myenv.myhost.com</destHost>
  <destPort>443</destPort>
  <destPath>mypath/sub</destPath>
  <query />
  <proxyHost>myproxy.net</proxyHost>
  <proxyPort>8080</proxyPort>
  <method>post</method>
  <authentification>none</authentification>
  <user />
  <password />
  <user2query />
  <password2query />
  <trustStoreURI>com.sap.b1i.vplatform.directory/System/truststore.jks</trustStoreURI>
  <keyStoreURI /> </connect>

The payload xml is very basic, just a request to logon to the webservice and get back a token

<payload>
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Header>
  <Action xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none" s:mustUnderstand="1">https://mycompleteurl.com</Action> 
  </s:Header>
- <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <login xmlns="https://mycompleteurl.com">
  <username xmlns="">USER</username>
  <password xmlns="">*********</password>
  </login>
  </s:Body>
  </s:Envelope>
  </payload>

Can anyone help me with this?

In what direction should I look?

Thanks,

Joeri