1
回答
java.security.cert.CertificateException: No subject alternative names present这是什么错呢
开发十年,就只剩下这套Java开发体系了   

在做https连接的时候,出了这个错,这是什么原因呢


Caused by: java.security.cert.CertificateException: No subject alternative names present

    at sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:142)
    at sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
    at sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
    at sun.security.ssl.AbstractTrustManagerWrapper.checkAdditionalTrust(SSLContextImpl.java:919)
    at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:886)
    at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428)
    ... 42 more
举报
银粟
发帖于2年前 1回/1K+阅
顶部