Skip to content

Instantly share code, notes, and snippets.

@schnell18
Last active September 7, 2024 18:10
Show Gist options
  • Save schnell18/9541560 to your computer and use it in GitHub Desktop.
Save schnell18/9541560 to your computer and use it in GitHub Desktop.
Generate a 2048-bit RSA key, create certificate sign request and self-sign the certificate for testing purpose
openssl genrsa -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment