Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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