Direct copy-paste of instructions for CSR generation from Jim’s entry in the wiki page. Needs formatting and additional instructions.
Generic CSR instructions
Linux/Unix OpenSSL Generic Guidance
References:
http://www.openssl.org/docs/HOWTO/certificates.txt http://www.openssl.org/docs/apps/req.html
The Command:
$ openssl req -nodes -sha1 -newkey rsa:2048 -keyout test.key -out test.req
The Outcome: Generating a 2048 bit RSA private key ……..+++ ……………………………………..+++ writing new private key to ‘test.key’
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter ‘.’, the field will be left blank.
Country Name (2 letter code) [AU]: US State or Province Name (full name) [Some-State]: . Locality Name (eg, city) []: . Organization Name (eg, company) [Internet Widgits Pty Ltd]: Some Company Organizational Unit Name (eg, section) []: Some Department Common Name (e.g. server FQDN or YOUR name) []: mywebsite.example.com Email Address []: .
Please enter the following ‘extra’ attributes to be sent with your certificate request A challenge password []: . An optional company name []: .
$ ls -l test* -rw-r–r– 1 jonesa user 1704 Sep 24 17:45 test.key -rw-r–r– 1 jonesa user 993 Sep 24 17:45 test.req
Windows CertReq Generic Guidance
References:
http://technet.microsoft.com/library/cc725793.aspx
The Command:
c:\>CertReq -New request.inf
The “request.inf” Contents:
[Version] Signature= "$Windows NT$"
[NewRequest] Subject = "C=US, O=Some Company, OU=Some Department, CN=#####" KeySpec = 1 KeyLength = 2048 HashAlgorithm = SHA1 Exportable = TRUE MachineKeySet = TRUE SMIME = FALSE PrivateKeyArchive = FALSE UserProtected = FALSE UseExistingKeySet = FALSE ProviderName = "Microsoft RSA SChannel Cryptographic Provider" ProviderType = 12 RequestType = PKCS10 KeyUsage = 0xf0
[EnhancedKeyUsageExtension] OID=1.3.6.1.5.5.7.3.2
The Outcome:
-
Prompt to save file
-
Saved file as temp.req
-
File contents:
-
—-BEGIN NEW CERTIFICATE REQUEST—–
MIIDxjCCAq4CAQAwRDENMAsGA1UEAwwEdGVtcDEMMAoGA1UECwwDRkVDMRgwFgYD
... h5aqFtHGWm5BMA== -----END NEW CERTIFICATE REQUEST-----