I have performed the following steps
obtained the pfx file from Ops Team
executed below command
sudo keytool -importkeystore -srckeystore /home/ec2-user/tmp/certs/caffe.com.pfx -srcstoretype pkcs12 -destkeystore caffe.com.jks -deststoretype JKS
Then moved the JKS to a local repository and used that in the jenkins config as below
sudo mkdir -p /etc/jenkins
sudo cp caffe.com.jks /etc/jenkins/
sudo chown -R jenkins: /etc/jenkins
sudo chmod 700 /etc/jenkins
sudo chmod 600 /etc/jenkins/caffe.com.jks
sudo vi /etc/sysconfig/jenkins
JENKINS_PORT="-1"
JENKINS_HTTPS_PORT="443"
JENKINS_HTTPS_KEYSTORE="/etc/jenkins/caffe.com.jks"
JENKINS_HTTPS_KEYSTORE_PASSWORD=""
JENKINS_HTTPS_LISTEN_ADDRESS="0.0.0.0"
Restarted the jenkins service from command line using systemctl start jenkins
I am not able to use command like solution given in Enable HTTPS in jenkins? because the above steps worked in old version of jenkins and also using the command has issues like restarting and permissions in linux (centos)
- i am not able to access the jenkins app at https://caffe.com, instead it still works at http://caffe.com:8080
I do not see any error logs as well in jenkins as to why it is not able to pickup the SSL file.
Please let me know if there is something wrong in the above steps