Getting solace connectivity issue when configure ssl certificate using URI amqps://localhost:5677?
Girraj
Member Posts: 1 ✭
Getting solace connectivity issue when configure ssl certificate using URI amqps://localhost:5677
transport.keyStoreLocation=/home/azureuser/Client_Certificate/server.keystore.jks&transport.keyStorePassword=********&transport.trustStoreLocation=/home/azureuser/Client_Certificate/server.truststore.jks&transport.trustStorePassword=********
[AmqpProvider :(3):[amqps://localhost:5677]][ERROR] [05 Jan 2022 13:25:51:341] org.apache.qpid.jms.transports.TransportSupport - Failed to create SSLContext: java.security.UnrecoverableKeyException: Get Key failed: null java.security.UnrecoverableKeyException: Get Key failed: null__ at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:455)__ at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)__ at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:71)__ at java.security.KeyStore.getKey(KeyStore.java:1023)__ at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:145)__ at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)__ at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)__ at org.apache.qpid.jms.transports.TransportSupport.loadKeyManagers(TransportSupport.java:376)__ at org.apache.qpid.jms.transports.TransportSupport.createJdkSslContext(TransportSupport.java:147)__ at org.apache.qpid.jms.transports.TransportSupport.createSslHandler(TransportSupport.java:118)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport.configureChannel(NettyTcpTransport.java:470)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport.access$200(NettyTcpTransport.java:68)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport$1.initChannel(NettyTcpTransport.java:176)__ at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)__ at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)__ at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)__ at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)__ at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)__ at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)__ at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)__ at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)__ at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)__ at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)__ at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)__ at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)__ at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)__ at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:387)__ at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)__ at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)__ at java.lang.Thread.run(Thread.java:748)__Caused by: java.lang.NullPointerException__ at sun.security.pkcs12.PKCS12KeyStore$RetryWithZero.run(PKCS12KeyStore.java:287)__ at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:390)__ ... 29 more [AmqpProvider :(3):[amqps://localhost:5677]][WARN ] [05 Jan 2022 13:25:51:342] io.netty.channel.ChannelInitializer - Failed to initialize a channel. Closing: [id: 0x2d2520c1] java.io.IOException: Get Key failed: null__ at org.apache.qpid.jms.util.IOExceptionSupport.create(IOExceptionSupport.java:45)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport.configureChannel(NettyTcpTransport.java:472)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport.access$200(NettyTcpTransport.java:68)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport$1.initChannel(NettyTcpTransport.java:176)__ at io.netty.channel.ChannelInitializer.initChannel(ChannelInitializer.java:129)__ at io.netty.channel.ChannelInitializer.handlerAdded(ChannelInitializer.java:112)__ at io.netty.channel.AbstractChannelHandlerContext.callHandlerAdded(AbstractChannelHandlerContext.java:938)__ at io.netty.channel.DefaultChannelPipeline.callHandlerAdded0(DefaultChannelPipeline.java:609)__ at io.netty.channel.DefaultChannelPipeline.access$100(DefaultChannelPipeline.java:46)__ at io.netty.channel.DefaultChannelPipeline$PendingHandlerAddedTask.execute(DefaultChannelPipeline.java:1463)__ at io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers(DefaultChannelPipeline.java:1115)__ at io.netty.channel.DefaultChannelPipeline.invokeHandlerAddedIfNeeded(DefaultChannelPipeline.java:650)__ at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:502)__ at io.netty.channel.AbstractChannel$AbstractUnsafe.access$200(AbstractChannel.java:417)__ at io.netty.channel.AbstractChannel$AbstractUnsafe$1.run(AbstractChannel.java:474)__ at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)__ at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)__ at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:387)__ at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)__ at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)__ at java.lang.Thread.run(Thread.java:748)__Caused by: java.security.UnrecoverableKeyException: Get Key failed: null__ at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:455)__ at sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)__ at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:71)__ at java.security.KeyStore.getKey(KeyStore.java:1023)__ at sun.security.ssl.SunX509KeyManagerImpl.<init>(SunX509KeyManagerImpl.java:145)__ at sun.security.ssl.KeyManagerFactoryImpl$SunX509.engineInit(KeyManagerFactoryImpl.java:70)__ at javax.net.ssl.KeyManagerFactory.init(KeyManagerFactory.java:256)__ at org.apache.qpid.jms.transports.TransportSupport.loadKeyManagers(TransportSupport.java:376)__ at org.apache.qpid.jms.transports.TransportSupport.createJdkSslContext(TransportSupport.java:147)__ at org.apache.qpid.jms.transports.TransportSupport.createSslHandler(TransportSupport.java:118)__ at org.apache.qpid.jms.transports.netty.NettyTcpTransport.configureChannel(NettyTcpTransport.java:470)__ ... 19 more__Caused by: java.lang.NullPointerException__ at sun.security.pkcs12.PKCS12KeyStore$RetryWithZero.run(PKCS12KeyStore.java:287)__ at sun.security.pkcs12.PKCS12KeyStore.engineGetKey(PKCS12KeyStore.java:390)__ ... 29 more [AmqpProvider :(3):[amqps://localhost:5677]][TRACE] [05 Jan 2022 13:25:51:345] org.apache.qpid.jms.transports.netty.NettyTcpTransport - Exception on channel! Channel is [id: 0x2d2520c1]
0
Answers
-
Hey @Girraj. Thanks for your first post on the community! I have edited your post to include code formatting blocks in the post by using ```. For future reference please include the code blocks for easier read
Regarding your questions, could you provide more details on how you are attempting a TLS connection in your code using ssl certificate?
1