Last active
September 7, 2024 18:10
-
-
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
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 -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