Loading...
 

TLS Create the Certificate Signing Request

Create the Certificate Signing Request

$openssl req -new -out private/virtualguest2.csr -key private/virtualhost2.pk

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) UK:
State or Province Name (full name) West Midlands:
Locality Name (eg, city) []:Birmingham
Organization Name (eg, company) Internet Widgits Pty Ltd:Private Website
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:webmail.website.com
Email Address []:hostmaster@website.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:


Check it

$openssl req -text -noout -in virtualguest2.csr

Certificate Request:
Data:
Version: 0 (0x0)
Subject: C=UK, ST=West Midlands, L=Birmingham, O=Private Website, CN=webmail.website.com/emailAddress=hostmaster@website.com

Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (1024 bit)
Modulus (1024 bit):
00:c9:f9:66:ac:7b:93:96:5b:5e:34:e0:bf:fd:dd:
37:9c:84:55:fe:f0:27:3c:80:41:5a:c1:f4:b4:5f:
41:2d:29:fd:d6:4d:da:19:16:90:6a:f7:dd:74:49:
ce:6c:f2:1a:f4:68:d8:7d:36:b5:36:08:53:64:aa:
4c:10:37:95:ed:0c:82:f3:a3:48:63:d2:25:dd:97:
d1:10:f9:6e:2f:f7:bd:56:31:f2:6f:d8:9c:55:08:
43:55:50:83:7e:ed:79:df:15:43:d0:cb:f8:69:68:
74:97:4f:16:c1:35:7f:3a:b1:ab:ce:e4:3b:e7:af:
1a:f0:b9:ba:6a:96:4f:da:ab
Exponent: 65537 (0x10001)
Attributes:
Requested Extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Key Usage:
Digital Signature, Non Repudiation, Key Encipherment
X509v3 Subject Alternative Name:
DNS:webmail.website.com, DNS:ssl.website.com, DNS:ssl.website2.com

Signature Algorithm: sha1WithRSAEncryption
37:f5:51:b2:b9:1d:f3:60:6f:1a:62:76:30:03:10:45:a3:1f:
2b:75:c1:26:72:d2:90:48:c0:b4:2f:40:8c:58:1d:98:ac:4e:
6f:4f:dd:84:18:4b:e9:29:7c:ea:1d:ca:3f:51:8f:f6:95:d9:
a8:10:35:96:22:bd:2c:72:d3:86:3f:ed:6b:c2:7f:b3:1e:a4:
c5:ee:65:ec:fe:01:b9:d3:c7:b1:59:55:32:cb:0d:9c:36:62:
29:f9:7e:cf:b2:a9:d5:9b:8e:7e:49:09:e2:9e:3c:29:f3:57:
bb:90:a2:fd:0a:bc:21:eb:50:94:14:91:14:4e:89:2f:3a:6c:
7f:1d