This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This gist is related to blog post https://mohitgoyal.co/2017/02/08/securing-your-jenkins-environment-and-configure-for-auditing/ | |
# Generate certificate csr | |
openssl req -new > new.ssl.csr | |
# Create a key file for generating certificate | |
openssl rsa -in privkey.pem -out new.cert.key | |
# Create a csr file using the key file for 635 days | |
openssl x509 -in new.ssl.csr -out new.cert.cert -req -signkey new.cert.key -days 365 |