Tutorials

Jenkins local

Jenkins PVE

Import into JVM keystore

Import certificate

openssl sclient -showcerts -connect https://dvsdnet2.devoteam.de\ < /dev/null 2> /dev/null | openssl x509 -outform PEM > ~/rootca.pem

Duplicate Java Keystore file and move into Jenkins...

mkdir $JENKINSHOME/keystore/ cp $JAVAHOME/jre/lib/security/cacerts $JENKINS_HOME/keystore/

Add Certificate to Keystore

keytool -import -alias $ALIAS -keystore $JENKINSHOME/keystore/cacerts -file ~/rootca.pem

Add -Djavax.net.ssl.trustStore=$JENKINS_HOME/keystore/cacerts to the

Jenkins startup parameters. For Debian/Ubuntu, this is /etc/default/jenkins

echo 'JAVAARGS="$JAVAARGS -Djavax.net.ssl.trustStore=$JENKINS_HOME/keystore/cacerts"'\

/etc/default/jenkins

sudo service jenkins restart