Skip to content

Instantly share code, notes, and snippets.

@jarrod180
Created January 23, 2019 08:50
Show Gist options
  • Select an option

  • Save jarrod180/9cb761eacf6a33b76ec324dcafc4d688 to your computer and use it in GitHub Desktop.

Select an option

Save jarrod180/9cb761eacf6a33b76ec324dcafc4d688 to your computer and use it in GitHub Desktop.
OpenSSL Create a CA and Client Cert
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