javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost [java]

Oracle Community | eligetiv | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error generating Webservices for wsdl over ssl

    Oracle Community | 8 years ago | eligetiv
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching localhost [java]
  2. 0

    Certificate signature validation failed

    Stack Overflow | 1 year ago | Vida
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: Certificate signature validation failed
  3. 0

    Problem in HttpsURLConnection

    Oracle Community | 1 decade ago | 843810
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HttpsURLConnection - Problem in SSL Handshaking

    Oracle Community | 1 decade ago | 666705
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found
  6. 0

    HttpsURLConnection - Problem in SSL Handshaking

    Coderanch | 1 decade ago | Madhavan Sundarraj
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: No trusted certificate found

    15 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.net.ssl.SSLHandshakeException

      java.security.cert.CertificateException: No name matching localhost [java]

      at com.sun.net.ssl.internal.ssl.Alerts.getSSLException()
    2. Java JSSE
      SSLSocketImpl.startHandshake
      1. com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
      2. com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)
      3. com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
      4. com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
      5. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
      6. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
      7. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
      8. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
      9. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
      10. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
      11. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
      12. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)
      12 frames
    3. Java RT
      HttpsClient.afterConnect
      1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
      1 frame