Last active
October 31, 2018 15:52
-
-
Save sgarciav/874ca7c505ecc65a74d9ff4c45d884aa to your computer and use it in GitHub Desktop.
Create SSL Certificate
This file contains 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
# First create the SSL certificate (.crt file) | |
# See: https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-apache-in-ubuntu-16-04 | |
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt | |
# Then generate the .pfx file | |
# See: https://www.ssl.com/how-to/create-a-pfx-p12-certificate-file-using-openssl/ | |
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt | |
# This output file is what you use for the digital signature. | |
# Cheers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment