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

1,197 views
Skip to first unread message

Grace Lee

unread,
Aug 27, 2014, 9:56:41 PM8/27/14
to jenkins...@googlegroups.com

Has anyone successfully started Jenkins slave via ‘Launch slave agents via Java Web Start’ when master is running in https protocol?

 

We are running Jenkins 1.568 on Linux Centos 5.5.

 

Jenkins suggested the following command to run on slave machine, but I think it’s lack of the cert key. Has anyone successfully done this? Thanks.

 

->java -jar slave.jar -jnlpUrl https://<master>:8080/hudson/computer/<slave>/s

lave-agent.jnlp -secret 9344091d1e0c6b2582d277761105f8380f799bc318cce577480c9aeaf31b0309

Exception in thread "main" javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names present

        at sun.security.ssl.Alerts.getSSLException(Unknown Source)

        at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)

        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

        at sun.security.ssl.Handshaker.fatalSE(Unknown Source)

        at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)

        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)

        at sun.security.ssl.Handshaker.processLoop(Unknown Source)

        at sun.security.ssl.Handshaker.process_record(Unknown Source)

        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)

        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)

        at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)

        at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)

        at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)

        at hudson.remoting.Launcher.parseJnlpArguments(Launcher.java:245)

        at hudson.remoting.Launcher.run(Launcher.java:207)

        at hudson.remoting.Launcher.main(Launcher.java:180)

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

        at sun.security.util.HostnameChecker.matchIP(Unknown Source)

        at sun.security.util.HostnameChecker.match(Unknown Source)

        at sun.security.ssl.X509TrustManagerImpl.checkIdentity(Unknown Source)

        at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)

        at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

        ... 14 more

Sebastian Schuberth

unread,
Nov 6, 2014, 9:47:58 AM11/6/14
to jenkins...@googlegroups.com
Try adding the "-noCertificateCheck" command line option. Also see http://stackoverflow.com/a/26782250/1127485.

Regards,
Sebastian

Reply all
Reply to author
Forward
0 new messages