Showing posts from October, 2022

OpenSSL CSR Cookbook

The Most Common Usage Making a CSR for and using the openssl command on ubuntu or any other kind of linux. openssl req -new -newkey rsa:2048 -nodes -out mycert.csr -keyout myprivate.key -subj "/C=US/ST=CA/L=Irvine/O=Ballers Bank of Amerika/OU=IT Dept/" A CSR With Multiple SAN first thing to do is to make a file called san.cnf with the following, for example [ req ] default_bits       = 2048 distinguished_name = req_distinguished_name req_extensions     = req_ext [ req_distinguished_name ] countryName                = US stateOrProvinceName        = CA localityName               = Irvine organizationName           = Ballers Bank of Amerika commonName                 = [ req_ext ] subjectAltName = @alt_names [alt_names] DNS.1   = DNS.2   = DNS.3   = DNS.4   = then run this command: openssl req -out ss