Last active
August 29, 2015 14:00
-
-
Save lancechentw/11075862 to your computer and use it in GitHub Desktop.
openssl self-signed 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
# CA | |
openssl genrsa -des3 -passout pass:x -out ca.pass.key 2048 | |
openssl rsa -passin pass:x -in ca.pass.key -out ca.key | |
openssl req -new -x509 -days 365 -key ca.key -out ca.crt | |
# server | |
openssl genrsa -des3 -out server.key 2048 | |
openssl req -new -key server.key -out server.csr | |
openssl x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment