Howto: Make Hudson HTTPS (Windows)

I am assuming you have installed hudson as a service in windows and that hudson lives in C:\hudson

Use a tool called Portecle to import your valid cert and export it as a java keystore file (.jks).  Remember to use THE SAME PASSWORD FOR ALL PROMPTS IN THAT PROGRAM (or you will run in to issues down the road). Save your .jks file (and any other files it generates like .keystore, etc) to the same path as hudson.xml is located (in this example i saved it to C:\hudson\mycert.jks)

To modify the hudson windows service to use https you must modify hudson.xml and then restart the hudson service in windows, below is what the hudson.xml file looks like in My environment:

(this file was located at C:\hudson\hudson.xml on a sever i am hosting)

… from line 31

This service runs Hudson continous integration system.

-Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\hudson.war" --httpsPort=9999 --httpsKeyStore="%BASE%\mycert.jks" --httpsKeyStorePassword=(PASSWORD REMOVED)


Obviously replace “(PASSWORD REMOVED)” with whatever password you used in Porticle.  Please note, in this example i was running hudson https on port 9999.

Leave a Reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>