Created
February 6, 2013 17:28
-
-
Save alh13/4724225 to your computer and use it in GitHub Desktop.
openssl commands for certificate manipulation
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
| Generate a key: | |
| openssl genrsa 2048 > <hostname>.key | |
| Generate a CSR: | |
| openssl req -new -key <hostname>.key -out <hostname>.csr | |
| Generate a self-signed cert: | |
| openssl req -new -x509 -nodes -days 365 -sha1 -key <hostname>.key > <hostname>.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment