JDK-8221570 : Update hardcoded 127.0.0.1 in tests that use pre-generated certificates.
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 13
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2019-03-27
  • Updated: 2022-01-18
Description
#insert list of tests that do this ...

One such example,      sun/net/www/protocol/https/HttpsURLConnection/IPAddressIPIdentities.java

 sun/net/www/protocol/https/HttpsURLConnection/IPAddressIPIdentities.java

    Caused by: java.security.cert.CertificateException: No subject
alternative names matching IP address 0:0:0:0:0:0:0:1 found
        at
java.base/sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:164)
        at
java.base/sun.security.util.HostnameChecker.match(HostnameChecker.java:100)
        at
java.base/sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:447)
        at
java.base/sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:422)
        at
java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:233)
        at
java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
        at
java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1315)
        ... 26 more