Creating a self-signed SSL certificate

This command allows you to create a self-signed and wildcard certificate for you:

openssl req -x509 -out _.domain.com.bundle.crt -keyout _.domain.com.private.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=*.domain.com' -extensions EXT -config <( \
printf '[dn]\nCN=*.domain.com\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:*.domain.com\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth') &>/dev/nullCode language: HTML, XML (xml)

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.