Skip to Content
0
Former Member
Aug 08, 2016 at 11:03 AM

Cann't connect to HTTPS from HCP

285 Views

Dear Community,

I'm trying to connect to SF API (https://api12preview.sapsf.eu/odata/v2/) from HCP demo application. But I got this exception:

javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake|

at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)|

at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)|

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)|

at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)|

at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)|

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.upgrade(DefaultHttpClientConnectionOperator.java:192)|

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.upgrade(PoolingHttpClientConnectionManager.java:369)|

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:415)|

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)|

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)|

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)|

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)|

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)|

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)|

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)|

...

Caused by: java.io.EOFException: SSL peer shut down incorrectly|

at sun.security.ssl.InputRecord.read(InputRecord.java:505)|

at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)|

... 65 more|

Also I tried to change JVM versions (7/8) and Runtime Version.

Next I tried to create HTTP destination but when I click on "Check connection" I got:

Error: Connection to "SFAPI" Failed

Failure reason: "peer not authenticated"

When I create HTTP destination e.g. https://www.gloogle.com/ everything goes OK.