[helm chart] [ssl] how to add ca cert file for accessing https page

10 views
Skip to first unread message

Hokwang

unread,
Dec 21, 2018, 2:06:26 AM12/21/18
to Jenkins Users
Hello.

I am in corporate proxy environment.

I can't access https page by default.

Simple fix solution is add cert to jenkins docker image and run update-ca-certificates command,
but I want to fix in helm chart.

I think I need to run below commands
mkdir $JENKINS_HOME/.cacerts/
cp $JAVA_HOME/jre/lib/security/cacerts $JENKINS_HOME/.cacerts/
$JAVA_HOME/bin/keytool -keystore $JENKINS_HOME/.cacerts/cacerts -import -alias my -file ca.crt

How to do this in helm chart?


Now, I created secret for ca.crt and volume mount, and I can add in JavaOpts  

-Djavax.net.ssl.trustStore=$JENKINS_HOME/.cacerts/cacerts
-Djavax.net.ssl.trustStorePassword=changeit


Thanks,
Reply all
Reply to author
Forward
0 new messages