Created
May 20, 2012 12:22
-
-
Save slivero/2757900 to your computer and use it in GitHub Desktop.
Creating Mysql SSL Certificates
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
openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem -out client-req.pem | |
openssl genrsa 2048 > ca-key.pem | |
openssl req -new -x509 -nodes -days 1000 -key ca-key.pem -out ca-cert.pem | |
openssl req -newkey rsa:2048 -days 1000 -nodes -keyout server-key.pem -out server-req.pem | |
openssl rsa -in server-key.pem -out server-key.pem | |
openssl x509 -req -in server-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem | |
openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem -out client-req.pem | |
openssl rsa -in client-key.pem -out client-key.pem | |
openssl x509 -req -in client-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out client-cert.pem | |
openssl verify -CAfile ca-cert.pem server-cert.pem client-cert.pem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment