Last active
June 5, 2019 13:33
-
-
Save AndersDJohnson/3850478 to your computer and use it in GitHub Desktop.
SSL certificate
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
| # See: http://www.houseofding.com/2008/11/generate-a-self-signed-ssl-certificate-for-local-development-on-a-mac/ | |
| # Generate a host key | |
| ssh-keygen -f host.key | |
| # Generate a certificate request file | |
| openssl req -new -key host.key -out request.csr | |
| # Create a self-signed SSL certificate using the request file. | |
| openssl x509 -req -days 365 -in request.csr -signkey host.key -out server.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment