hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gianluca Stivan ...@yawnt.com>
Subject SSL Error: Could not verify host
Date Sun, 08 Nov 2015 09:25:02 GMT
I'm using Apache CXF and setting up AsyncHTTPClient as my HTTP transport,
however I'm hitting the following error (I tried googling, to no avail):

[error] Caused by: javax.net.ssl.SSLException: Could not verify host
$HOSTNAME
[error]     at
org.apache.cxf.transport.http.asyncclient.AsyncHTTPConduit$AsyncWrappedOutputStream$5.verifySession(AsyncHTTPConduit.java:537)
[error]     at
org.apache.http.nio.conn.ssl.SSLIOSessionStrategy$1.verify(SSLIOSessionStrategy.java:188)
[error]     at
org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:366)
[error]     at
org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:507)
[error]     at
org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:122)
[error]     at
org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164)
[error]     at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339)
[error]     at
org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317)
[error]     at
org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
[error]     at
org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
[error]     at
org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:590)
[error]     at java.lang.Thread.run(Thread.java:745)

I made sure that the certificate is available in the
jre/lib/security/cacerts file and when running with debugging flags enabled
it does say

[info] Found trusted certificate:

The synchronous HTTP client (the one CXF defaults to) works without issues.
Any ideas?

Thank you very much

Gianluca

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message