Closed braghome closed 7 years ago
do we have a way to simply skip SSLValidation and trust all certs from client side
resolution is to replace your JRE's jre > lib > security jar's with Oracle http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
😭
this issue exists tried 2.0.31 and 2.1.0-alpha11, see my code below I have put in placeholders for auth fields
` public static void main(final String[] args) {
} `
error occurs:
error when check push on connect Received fatal alert: handshake_failureException in thread "main" java.util.concurrent.ExecutionException: java.net.ConnectException: Received fatal alert: handshake_failure at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1915) at org.asynchttpclient.netty.NettyResponseFuture.get(NettyResponseFuture.java:177) at com.trulia.api.bdd.heavy.service.TestNetty.main(TestNetty.java:148) Caused by: java.net.ConnectException: Received fatal alert: handshake_failure at org.asynchttpclient.netty.channel.NettyConnectListener.onFailure(NettyConnectListener.java:168) at org.asynchttpclient.netty.channel.NettyConnectListener$1.onFailure(NettyConnectListener.java:139) at org.asynchttpclient.netty.SimpleFutureListener.operationComplete(SimpleFutureListener.java:26) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507) at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:500) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:479) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420) at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122) at io.netty.handler.ssl.SslHandler.notifyHandshakeFailure(SslHandler.java:1387) at io.netty.handler.ssl.SslHandler.setHandshakeFailure(SslHandler.java:1379) at io.netty.handler.ssl.SslHandler.setHandshakeFailure(SslHandler.java:1353) at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1051) at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:411) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:248) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:335) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:356) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:342) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:625) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:560) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:477) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:439) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144) at java.lang.Thread.run(Thread.java:745) Caused by: javax.net.ssl.SSLException: Received fatal alert: handshake_failure at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1666) at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1634) at sun.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1800) at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1083) at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:907) at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:781) at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) at io.netty.handler.ssl.SslHandler$SslEngineType$2.unwrap(SslHandler.java:222) at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1119) at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1041)
curl works fine `