简体   繁体   中英

Jenkins - Proxy authentication by certificate

I am new to Jenkins.

My windows server installation has a Zscaler root certificate for authentication at the proxy in order access internet.

Now I am trying to authenticate the jenkins at the Zscaler proxy with this certificate. The windows installed root certificate is not found by jenkins automatically.

Does anybody know how include a java keystore witht the certificate in the jenkins, so that the jenkins server can bypass the proxy and access internet with this certificate

Finally solved it via:

(1) Creating a java key store with keytool in java bin folder:

keytool -importcert -alias jenkins -keystore myKeyStore -storepass myPassword -file ca.der

In my case it was a cert ca certificate being renamed to pem.

(2) Afterwards I added the keystore to jenkins.xml inside the arguments field:

-Djavax.net.ssl.trustStore=somewhereInMyFilesystem/myKeystore
-Djavax.net.ssl.trustStorePassword=myPassword 

(3) Restart

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM