Jenkins改成https访问

一、生成证书

openssl生成自签证书

二、启动Jenkins时指定证书

java -jar jenkins.war --logfile=/data/jenkins/log --httpPort=-1 --httpsPort=8090   -Dfile.encoding=UTF-8  --httpsCertificate=cert.pem --httpsPrivateKey=cert.key &

参考文章:https://www.cnblogs.com/EasonJim/p/6648552.html

猜你喜欢

转载自blog.csdn.net/anqixiang/article/details/109130577