Generate self-signed wildcard certificate

1. openssl genrsa 2048 > host.key
2. openssl req -new -x509 -nodes -sha1 -days 3650 -key host.key > host.cert
#[enter *.domain.com for the Common Name]
3. openssl x509 -noout -fingerprint -text < host.cert > host.info
4. cat host.cert host.key > host.pem
5. openssl pkcs12 -export -out localhost2.pfx -inkey host.key -in host.cert
chmod 400 host.key host.pem

Advertisements