Hi All<\/p>\n
I want to generate csr for a web url, lets say the url is https://test1.mydomain.com<\/a> . i have installed openssl. [req] [req_distinguished_name] [v3_req] [alt_names] i have saved the above file as url.com.cnf under c:\\temp.<\/p>\n a.To make CSR file: b. To verify CSR file: c. To create Key File: d. To make pfx after getting the cer file If you are doing this in windows, generate the CSR from within IIS, it’s simpler for you.<\/p>\n Yes you can use the same name for CN and DNS<\/p>","upvoteCount":0,"datePublished":"2022-04-19T07:20:03.000Z","url":"https://community.spiceworks.com/t/generate-csr/830726/3","author":{"@type":"Person","name":"Rod-IT","url":"https://community.spiceworks.com/u/Rod-IT"}},"suggestedAnswer":[{"@type":"Answer","text":" Hi All<\/p>\n I want to generate csr for a web url, lets say the url is https://test1.mydomain.com<\/a> . i have installed openssl. [req] [req_distinguished_name] [v3_req]
\ncan i give the same name for CN and DNS.1 in the below cnf file. Please validate the below steps and let me know if this the correct approach<\/p>\n
\nprompt = no
\ndistinguished_name = req_distinguished_name
\nreq_extensions = v3_req
\ndefault_md = sha256<\/p>\n
\nC = US
\nST = ABC
\nL = XYZ
\nO = My Company
\nCN = test1.mydomain.com<\/a><\/p>\n
\nkeyUsage = keyEncipherment, dataEncipherment
\nextendedKeyUsage = serverAuth
\nsubjectAltName = @alt_names<\/span><\/p>\n
\nDNS.1 = test1.mydomain.com<\/a><\/p>\n
\nopenssl req -new -out “C:\\temp\\url.com.csr” -newkey rsa:2048 -nodes -sha256 -keyout “C:\\temp\\url.com.key.temp” -config “C:\\temp\\url.com.cnf”<\/p>\n
\nopenssl req -text -noout -verify -in “C:\\temp\\url.com.csr”<\/p>\n
\nopenssl rsa -in “C:\\temp\\url.com.key.temp” -out “C:\\temp\\url.com.key”<\/p>\n
\nopenssl pkcs12 -export -out “C:\\temp\\url.com.pfx” -inkey “C:\\temp\\url.com.key” -in “C:\\temp\\url.com.crt”<\/p>","upvoteCount":7,"answerCount":3,"datePublished":"2022-04-19T00:49:51.000Z","author":{"@type":"Person","name":"rogerroger3","url":"https://community.spiceworks.com/u/rogerroger3"},"acceptedAnswer":{"@type":"Answer","text":"
\ncan i give the same name for CN and DNS.1 in the below cnf file. Please validate the below steps and let me know if this the correct approach<\/p>\n
\nprompt = no
\ndistinguished_name = req_distinguished_name
\nreq_extensions = v3_req
\ndefault_md = sha256<\/p>\n
\nC = US
\nST = ABC
\nL = XYZ
\nO = My Company
\nCN = test1.mydomain.com<\/a><\/p>\n
\nkeyUsage = keyEncipherment, dataEncipherment
\nextendedKeyUsage = serverAuth
\nsubjectAltName = @alt_names<\/span><\/p>\n