Unable to get Java 8 generated keystore to be recognized by Jenkins 2.101 (Winstone)?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Unable to get Java 8 generated keystore to be recognized by Jenkins 2.101 (Winstone)?

Rob Gordon
I'm having some difficulty enabling SSL on my Jenkins server (build 2.101 on CentOS 7.x).

I have generated a Java keystore, using jks format, and the keystore is

The only variable in the keystore that's 'unique' is the keystore alias variable.  And I'm not seeing anywhere in the /etc/sysconfig/jenkins configuration file where I can define the keystore alias variable, as I've been able to do with other Tomcat server applications.   When I attempt to start Jenkins (installed a a service) I receive the following error message.   The path is definitely correct and all appropriate permissions are applied to the keystore.

Does Winstone usually look for a specific "default" alias in a keystore, and is there a JAVA variable that can be issued in the configuration file to define the alias variable?

Running from: /usr/lib/jenkins/jenkins.war
Jan 12, 2018 10:13:28 AM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Jan 12, 2018 10:13:29 AM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @370ms to org.eclipse.jetty.util.log.JavaUtilLog
Jan 12, 2018 10:13:29 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jan 12, 2018 10:13:29 AM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
Jan 12, 2018 10:13:29 AM winstone.Logger logInternal
INFO: Winstone shutdown successfully
java.io.IOException: Failed to start a listener: winstone.HttpsConnectorFactory
        at winstone.Launcher.spawnListener(Launcher.java:209)
        at winstone.Launcher.<init>(Launcher.java:150)
        at winstone.Launcher.main(Launcher.java:354)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at Main._main(Main.java:294)
        at Main.main(Main.java:132)
Caused by: winstone.WinstoneException: No SSL key store found at /var/lib/jenkins.jks
        at winstone.AbstractSecuredConnectorFactory.configureSsl(AbstractSecuredConnectorFactory.java:64)
        at winstone.HttpsConnectorFactory.start(HttpsConnectorFactory.java:41)
        at winstone.Launcher.spawnListener(Launcher.java:207)

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/93ce457c-28eb-479f-801c-233c4d876946%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.