Created
January 23, 2019 08:50
-
-
Save jarrod180/9cb761eacf6a33b76ec324dcafc4d688 to your computer and use it in GitHub Desktop.
OpenSSL Create a CA and Client Cert
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 genrsa -des3 -out ca.key 4096 | |
| openssl req -new -x509 -days 1000 -key ca.key -out ca.crt | |
| openssl genrsa -des3 -out client.key 4096 | |
| openssl req -new -key client.key -out client.csr | |
| openssl x509 -req -days 1000 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out client.crt | |
| openssl pkcs12 -export -clcerts -in client.crt -inkey client.key -out client.p12 | |
| openssl pkcs12 -in client.p12 -out client.pem -clcerts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment