Enable HTTPS in jenkins?

后端 未结 4 1366
栀梦
栀梦 2020-12-15 07:20

I have a private network with a local IP. I want to Enable HTTPS for my Jenkins server which is static IP W.X.Y.Z:8080.

Jenkins version 2.9
java version \"1.         


        
4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 07:30

    If you have your new instance of Jenkins which is a copy of your old Jenkins instance. Copy the cacerts which will be located at ..\Jenkins\jre\lib\security to the jre\secrets folder of your existing new Jenkins instance.

    In jenkins.xml change the arguments accordingly, e.g.:

    
        -Xrs 
        -Xmx256m 
        -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle 
        -jar "%BASE%\jenkins.war" 
        --httpPort=-1 
        --httpsPort=8443 
        --httpsKeyStore="%BASE%\secrets\keystore" 
        --httpsKeyStorePassword=your.password.here
    
    

提交回复
热议问题