Sign the CSR as the CA using the private key
$openssl ca -policy policy_anything -in private/virtualguest2.csr -out private/virtualguest2.pem
Using configuration from /usr/lib/ssl/openssl.cnf
Enter pass phrase for ./demoCA/private/cakey.pem:
Check that the request matches the signature
Signature ok
Certificate Details:
Serial Number: 1 (0x1)
Validity
Not Before: Nov 14 19:44:49 2010 GMT
Not After : Nov 14 19:44:49 2011 GMT
Subject:
countryName = UK
stateOrProvinceName = My County
localityName = My City
organizationName = Private Website
commonName = name.website.com
emailAddress =
Check the New Certificate
$openssl x509 -text -noout -in private/virtualguest2.pem
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=UK, ST=West Midlands, O=Private CA, CN=Private Certifiacte Authority/emailAddress=hostmaster@website.com
Validity
Not Before: Nov 14 19:44:49 2010 GMT
Not After : Nov 14 19:44:49 2011 GMT
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)
X509v3 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
46:da:78:3d:47:a6:ec:3e:75:41:71:e6:f8:47:99:02:63:85:
40:c1:36:71:45:78:9a:da:d7:c9:12:69:e8:2d:f0:ef:92:1c:
e8:92:dd:32:a7:95:5f:40:48:bf:71:4b:22:1f:13:f2:28:88:
53:8a:04:a0:28:c0:09:f6:9b:6c:03:3b:9f:88:31:d7:6c:9a:
41:a5:46:0b:c7:5e:7e:10:17:3e:11:3f:e9:20:6f:8d:c7:9e:
93:b4:a8:97:78:25:f5:51:25:ff:c6:b3:b3:74:31:2f:20:e0:
93:68:62:f3:0e:be:1d:41:8e:5f:58:ac:af:35:0e:f1:0b:0a:
3b:0b