Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4709

SSLHandshakeException: Received fatal alert: bad_certificate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • RHDG 8.2 CR1, RHDG 8.4 GA, RHDG 8.3.1 GA
    • Server, TestSuite
    • False
    • False
    • Undefined

      Test: org.infinispan.client.hotrod.SslTest

            java.lang.AssertionError: Wrong exception thrown: expected:<class java.io.IOException>, actual:<class io.netty.handler.codec.DecoderException>
      	at org.infinispan.commons.test.Exceptions.assertExceptionNonStrict(Exceptions.java:49)
      	at org.infinispan.commons.test.Exceptions.expectExceptionNonStrict(Exceptions.java:123)
      	at org.infinispan.client.hotrod.SslTest.testClientAuthWithAnonClient(SslTest.java:174)
      	at org.infinispan.commons.test.TestNGLongTestsHook.run(TestNGLongTestsHook.java:24)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:478)
      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
      	at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:795)
      	at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:480)
      	at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:378)
      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
      	... 3 more
      Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate
      	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
      	at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:117)
      	at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:336)
      	at java.base/sun.security.ssl.Alert$AlertConsumer.consume(Alert.java:293)
      	at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:185)
      	at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)
      	at java.base/sun.security.ssl.SSLEngineImpl.decode(SSLEngineImpl.java:681)
      	at java.base/sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:636)
      	at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:454)
      	at java.base/sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:433)
      	at java.base/javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:637)
      	at io.netty.handler.ssl.SslHandler$SslEngineType$3.unwrap(SslHandler.java:284)
      	at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1358)
      	at io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1253)
      	at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1300)
      	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:508)
      	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:447)
      	... 16 more
      ... Removed 18 stack frames
      

              ttarrant@redhat.com Tristan Tarrant
              dlovison@redhat.com Diego Lovison
              Diego Lovison Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: