Create Certificate Signing Request (CSR) on Linux

Step 1 - create a config.txt file for the CSR :

distinguished_name = req_distinguished_name
req_extensions = v3_req
prompt = no
C = US
ST = Illinois
L = Some City
O = Company Name
OU = IT Dept
CN =
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
DNS.1 =

Step 2 - create the CSR file:

openssl req -new -out certificate.csr -newkey rsa:2048 -nodes -sha256 -keyout certificate.key -config config.txt


More info here:

Leave a Reply