javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

Jenkins JIRA | vinodh kumar | 11 months ago
  1. 0

    [JIRA] [slave-utilization] (JENKINS-32514) unable to launch master-slave while jenkins running in HTTPS

    Google Groups | 11 months ago | vinodh_d_kumar@yahoo.com (JIRA)
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  2. 0

    scbops@HKLPADSNR01[sonar] $ /SONARDATA/jdk1.7.0_75/bin/java -jar slave.jar -jnlpUrl https://10.20.168.110:8443/jenkins/computer/10.20.168.110_sonar/slave-agent.jnlp -secret 55ccbc96ee374e2601228f38b51b4076b4e95d46da60e94e0151b2f23af413ee Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901) at sun.security.ssl.Handshaker.process_record(Handshaker.java:837) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:268) at hudson.remoting.Launcher.run(Launcher.java:218) at hudson.remoting.Launcher.main(Launcher.java:192) 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.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428) ... 13 more scbops@HKLPADSNR01[sonar] $

    Jenkins JIRA | 11 months ago | vinodh kumar
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  3. 0

    scbops@HKLPADSNR01[sonar] $ /SONARDATA/jdk1.7.0_75/bin/java -jar slave.jar -jnlpUrl https://10.20.168.110:8443/jenkins/computer/10.20.168.110_sonar/slave-agent.jnlp -secret 55ccbc96ee374e2601228f38b51b4076b4e95d46da60e94e0151b2f23af413ee Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1904) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901) at sun.security.ssl.Handshaker.process_record(Handshaker.java:837) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:268) at hudson.remoting.Launcher.run(Launcher.java:218) at hudson.remoting.Launcher.main(Launcher.java:192) 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.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428) ... 13 more scbops@HKLPADSNR01[sonar] $

    Jenkins JIRA | 11 months ago | vinodh kumar
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Start Jenkins slave from Windows 7 while master is run with https protocol

    Google Groups | 2 years ago | BRatProofpoint
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present
  6. 0

    Extract public.key

    Stack Overflow | 1 year ago | user3185729
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

  1. rp 1 times, last 8 months ago
  2. poroszd 1 times, last 9 months ago
14 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. java.security.cert.CertificateException

    No subject alternative names present

    at sun.security.util.HostnameChecker.matchIP()
  2. Java RT
    HostnameChecker.match
    1. sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:142)
    2. sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
    2 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:203)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:837)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)
    10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)
    11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)
    11 frames
  4. Java RT
    HttpsURLConnectionImpl.connect
    1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
    2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
    3. sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    3 frames
  5. Hudson :: Remoting Layer
    Launcher.main
    1. hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:268)
    2. hudson.remoting.Launcher.run(Launcher.java:218)
    3. hudson.remoting.Launcher.main(Launcher.java:192)
    3 frames