Skip to content

Instantly share code, notes, and snippets.

@HeikoMamerow
Last active January 3, 2018 23:56
Show Gist options
  • Save HeikoMamerow/dfa7f3c7fa932e22e8b68d34fdc36767 to your computer and use it in GitHub Desktop.
Save HeikoMamerow/dfa7f3c7fa932e22e8b68d34fdc36767 to your computer and use it in GitHub Desktop.
create a self signed wildcard ssl cert
# 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