Cheat Sheet
Generate self-signed certificates
Create a config file called ssl.conf.
[ req ]
default_bits = 4096
distinguished_name = req_distinguished_name
req_extensions = req_ext
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = CA
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Ontario
localityName = Locality Name (eg, city)
localityName_default = Toronto
organizationName = Organization Name (eg, company)
organizationName_default = Your_Company_Name
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_max = 64
commonName_default = yourdomain.com
[ req_ext ]
subjectAltName = @alt_names
[alt_names]
DNS.1 = anything.yourdomain.com
DNS.2 = *.anything.yourdomain.comThen, create a private key.
To create the Singing Request, run:
Check all info by running:
Finally, generate the certificate.
Validate SSL handshake
Last updated