Last active
January 3, 2018 23:56
-
-
Save HeikoMamerow/dfa7f3c7fa932e22e8b68d34fdc36767 to your computer and use it in GitHub Desktop.
create a self signed wildcard ssl cert
This file contains 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
# Source: https://blog.sleeplessbeastie.eu/2016/11/14/how-to-generate-self-signed-ssl-certificate/ | |
# Single domain | |
sudo openssl req -subj "/commonName=zwei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout zwei.test.key -out zwei.test.crt | |
# Wildcard domain | |
sudo openssl req -subj "/commonName=*.hei.test/" -x509 -nodes -days 730 -newkey rsa:2048 -keyout hei.test.key -out hei.test.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment