Openssl commands:
openssl genrsa -out self-ssl.key
openssl req -new -key self-ssl.key -out self-ssl.csr -config csr.conf
Configuration csr.conf:
[req]
default_bits = 2048
req_extensions = req_ext
distinguished_name = dn
prompt = no
[ dn ]
C="TW"
ST="Taiwan"
L="Taipei"
O="YIDAS"
OU="Service"
CN/emailAddress="[email protected]"
CN=yourdomain.com
[ req_ext ]
subjectAltName = @alt_names
[ alt_names ]
DNS.0 = *.yourdomain.com
DNS.1 = *.dev.yourdomain.com
Thanks a ton really helpful.