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/null
Code language: HTML, XML (xml)
Leave a Reply