You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/01/15 04:13:20 UTC

[GitHub] [skywalking] JHub-Wei opened a new issue #6212: General OpenSslEngine problem

JHub-Wei opened a new issue #6212:
URL: https://github.com/apache/skywalking/issues/6212


   Please answer these questions before submitting your issue.
   
   - Why do you submit this issue?
   - [*] Question or discussion
   - [ ] Bug
   - [ ] Requirement
   - [ ] Feature or performance improvement
   
   ___
   ### Question
   - What do you want to know?
   We use gRPC SSL transportation for OAP server and Agent,but find it not work normally。The service connected to the agent throws an exception:
   Caused by: javax.net.ssl.SSLHandshakeException: General OpenSslEngine problem
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.handshakeException(ReferenceCountedOpenSslEngine.java:1771)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.wrap(ReferenceCountedOpenSslEngine.java:776)
           at javax.net.ssl.SSLEngine.wrap(SSLEngine.java:511)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.wrap(SslHandler.java:1079)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.wrapNonAppData(SslHandler.java:970)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1443)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.decodeJdkCompatible(SslHandler.java:1275)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1322)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:501)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:440)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:650)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:576)
           at org.apache.skywalking.apm.dependencies.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
           at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
           at org.apache.skywalking.apm.dependencies.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
           at org.apache.skywalking.apm.dependencies.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
           ... 1 more
   Caused by: java.security.cert.CertificateException: No subject alternative names present
           at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:146)
           at sun.security.util.HostnameChecker.match(HostnameChecker.java:95)
           at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:462)
           at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:442)
           at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:261)
           at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:144)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.OpenSslTlsv13X509ExtendedTrustManager.checkServerTrusted(OpenSslTlsv13X509ExtendedTrustManager.java:223)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslClientContext$ExtendedTrustManagerVerifyCallback.verify(ReferenceCountedOpenSslClientContext.java:261)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslContext$AbstractCertificateVerifier.verify(ReferenceCountedOpenSslContext.java:700)
           at org.apache.skywalking.apm.dependencies.io.netty.internal.tcnative.SSL.readFromSSL(Native Method)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.readPlaintextData(ReferenceCountedOpenSslEngine.java:595)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1202)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1324)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler$SslEngineType$1.unwrap(SslHandler.java:201)
           at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1380)
           ... 21 more
           Suppressed: javax.net.ssl.SSLHandshakeException: error:1000007d:SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED
                   at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.sslReadErrorResult(ReferenceCountedOpenSslEngine.java:1287)
                   at org.apache.skywalking.apm.dependencies.io.netty.handler.ssl.ReferenceCountedOpenSslEngine.unwrap(ReferenceCountedOpenSslEngine.java:1248)
                   ... 24 more
   ___
   ### Bug
   - Which version of SkyWalking, OS, and JRE?
   apache-skywalking-apm-es7-8.3.0
   - Which company or project?
   
   - What happened?
   If possible, provide a way to reproduce the error. e.g. demo application, component version.
   
   ___
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] JHub-Wei commented on issue #6212: General OpenSslEngine problem

Posted by GitBox <gi...@apache.org>.
JHub-Wei commented on issue #6212:
URL: https://github.com/apache/skywalking/issues/6212#issuecomment-760706943


   What mean is only support no mutual auth in /java-agent/TLS.md?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6212: General OpenSslEngine problem

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6212:
URL: https://github.com/apache/skywalking/issues/6212#issuecomment-760708358


   You should at least search the question, right? https://www.google.com/search?q=tls+mutual+authentication&oq=TLSmutual&aqs=chrome.1.69i57j0i7i30l2j0i7i30i395l7.4689j1j7&sourceid=chrome&ie=UTF-8


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng commented on issue #6212: General OpenSslEngine problem

Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #6212:
URL: https://github.com/apache/skywalking/issues/6212#issuecomment-760643485


   This is ssl level error. Look for ssl and grpc doc for more details.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [skywalking] wu-sheng closed issue #6212: General OpenSslEngine problem

Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #6212:
URL: https://github.com/apache/skywalking/issues/6212


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org