Last active
August 9, 2020 04:32
-
-
Save NanoDano/53f75289be55e157e2df7fef2de62c2e to your computer and use it in GitHub Desktop.
Create self-signed SSL certificate with OpenSSL command-line tool
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
#!/usr/bin/bash | |
openssl \ | |
req \ | |
-newkey rsa:2048 -nodes \ | |
-keyout self-signed.key \ | |
-x509 -days 36500 -out self-signed.cert \ | |
-subj "/C=US/ST=NRW/L=Earth/O=CompanyName/OU=IT/CN=www.example.com/[email protected]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment