Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8214440

ldap over a TLS connection negotiate failed with "javax.net.ssl.SSLPeerUnverifiedException: hostname of the server '' does not match the hostname in the server's certificate"

    Details

    • Subcomponent:
    • Introduced In Build:
      b20
    • Resolved In Build:
      b04

      Backports

        Description

        ----------System.err:(35/2441)----------
        javax.net.ssl.SSLPeerUnverifiedException: hostname of the server '' does not match the hostname in the server's certificate.
        at java.naming/com.sun.jndi.ldap.ext.StartTlsResponseImpl.verify(StartTlsResponseImpl.java:436)
        at java.naming/com.sun.jndi.ldap.ext.StartTlsResponseImpl.negotiate(StartTlsResponseImpl.java:225)
        at java.naming/com.sun.jndi.ldap.ext.StartTlsResponseImpl.negotiate(StartTlsResponseImpl.java:170)
        at LDAPExtendedOpTestBase.activateTLS(LDAPExtendedOpTestBase.java:58)
        at Read.activateTLS(Read.java:20)
        at Read.runTest(Read.java:34)
        at TestBase.launch(LDAPTestBase.java:210)
        at LDAPTestBase.launch(LDAPTestBase.java:19)
        at TestBase.run(LDAPTestBase.java:178)
        at LDAPTestBase.run(LDAPTestBase.java:19)
        at LDAPClosedTestBase.run(LDAPClosedTestBase.java:15)
        at Read.main(Read.java:23)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:835)
        Caused by: java.security.cert.CertificateException: Illegal given domain name:
        at java.base/sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:192)
        at java.base/sun.security.util.HostnameChecker.match(HostnameChecker.java:102)
        at java.base/sun.security.util.HostnameChecker.match(HostnameChecker.java:108)
        at java.naming/com.sun.jndi.ldap.ext.StartTlsResponseImpl.verify(StartTlsResponseImpl.java:416)
        ... 17 more
        Caused by: java.lang.IllegalArgumentException: Server name value of host_name cannot be empty
        at java.base/javax.net.ssl.SNIHostName.checkHostName(SNIHostName.java:314)
        at java.base/javax.net.ssl.SNIHostName.<init>(SNIHostName.java:108)
        at java.base/sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:190)
        ... 20 more

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  robm Robert Mckenna
                  Reporter:
                  xyin Chris Yin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: