Skip to content

Instantly share code, notes, and snippets.

@eloylp
Created April 21, 2019 19:17
Show Gist options
  • Save eloylp/36e3320eb947c52fe7890ed6a12949f9 to your computer and use it in GitHub Desktop.
Save eloylp/36e3320eb947c52fe7890ed6a12949f9 to your computer and use it in GitHub Desktop.
Self signed certificate with own ca
openssl req -new -x509 -days 720 -extensions v3_ca -keyout my-ca.key -out my-ca.crt
openssl genrsa -out server.key
openssl req -out server.csr -key server.key -new
openssl x509 -req -in server.csr -CA my-ca.crt -CAkey my-ca.key -CAcreateserial -out server.crt -days 720
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment