javax.net.ssl.SSLPeerUnverifiedException: Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)

Stack Overflow | HknLof | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    SSLSocketFactory verifyHostname unable to resolve subdomain

    Stack Overflow | 6 months ago | HknLof
    javax.net.ssl.SSLPeerUnverifiedException: Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)

    Root Cause Analysis

    1. javax.net.ssl.SSLPeerUnverifiedException

      Host name 'test.example' does not match the certificate subject provided by the peer (CN=example, ...)

      at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname()
    2. Apache HttpClient
      SSLConnectionSocketFactory.verifyHostname
      1. org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:465)
      1 frame