openssl req -new -newkey rsa:2048 -nodes -keyout name.com.key -out name.com.csr --config name.com.conf
[ req ]
default_bits = 2048
distinguished_name = req_distinguished_name
req_extensions = req_ext
prompt = no
[ req_distinguished_name ]
countryName = SG
stateOrProvinceName = Pinata
localityName = Pinata
organizationName = Awesome works PLC
organizationalUnitName = Engineering division
commonName = awesome.works.com
[ req_ext ]
subjectAltName = @alt_names
[alt_names]
DNS.1 = {req_distinguished_name::commonName}
DNS.2 = superawesome.works.com
openssl req -text -noout -verify -in name.com.csr
openssl pkcs7 -inform DER -outform PEM -in <certificateBundle.p7b> -print_certs