CertificateException: No name matching ssl.someUrl.de found

后端 未结 7 1825
生来不讨喜
生来不讨喜 2020-11-29 21:22

I\'m trying to connect to one of my servers through ssl, with Java. I tried a lot of options here is my best try:

I generate a jssecacerts with the recommendet scrip

7条回答
  •  情书的邮戳
    2020-11-29 22:10

    If you're looking for a Kafka error, this might because the upgrade of Kafka's version from 1.x to 2.x.

    javax.net.ssl.SSLHandshakeException: General SSLEngine problem ... javax.net.ssl.SSLHandshakeException: General SSLEngine problem ... java.security.cert.CertificateException: No name matching *** found

    or

    [Producer clientId=producer-1] Connection to node -2 failed authentication due to: SSL handshake failed

    The default value for ssl.endpoint.identification.algorithm was changed to https, which performs hostname verification (man-in-the-middle attacks are possible otherwise). Set ssl.endpoint.identification.algorithm to an empty string to restore the previous behaviour. Apache Kafka Notable changes in 2.0.0

    Solution: SslConfigs.SSL_ENDPOINT_IDENTIFICATION_ALGORITHM_CONFIG, ""

提交回复
热议问题