Created
November 6, 2012 18:31
-
-
Save jgrevich/4026572 to your computer and use it in GitHub Desktop.
Creation of a self-signed cert with SAN in Ubuntu 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openssl genrsa -out /etc/ssl/private/test.key 2048 | |
openssl req -new -key /etc/ssl/private/test.key -out /etc/ssl/private/test.csr | |
openssl x509 -req -extensions v3_req -days 365 -in /etc/ssl/private/test.csr -signkey /etc/ssl/private/test.key -out /etc/ssl/certs/test.pem | |
openssl req -text -noout -in /etc/ssl/private/test.csr | |
root@jx:/etc/ssl/private# openssl req -text -noout -in /etc/ssl/private/test.csr | |
Certificate Request: | |
Data: | |
Version: 0 (0x0) | |
Subject: C=US, ST=California, L=La Jolla, O=grevi.ch, CN=grevi.ch/[email protected] | |
Subject Public Key Info: | |
Public Key Algorithm: rsaEncryption | |
Public-Key: (2048 bit) | |
Modulus: | |
00:c2:46:fd:c6:1b:9e:d3:b5:0c:33:d5:15:13:e8: | |
10:b0:fb:ec:74:c4:6a:7e:2a:77:65:da:11:4e:86: | |
a2:f9:b1:e0:d3:2f:aa:58:d5:d7:25:11:3b:48:32: | |
56:5a:ab:cb:a8:5a:ce:67:cb:23:9e:22:9f:23:6b: | |
86:9c:75:df:44:ab:98:e5:5d:2f:0e:7f:ca:95:d2: | |
a0:11:2a:4b:f5:4c:92:cb:5b:c7:49:1f:0d:ec:e3: | |
23:d9:a3:f8:95:fc:65:3a:34:34:b0:74:36:da:1c: | |
1c:c9:ed:be:61:39:5b:1a:41:d8:54:75:4d:f1:9a: | |
ff:08:ee:c0:32:4c:1e:27:67:ba:03:c6:92:0d:44: | |
50:d4:c8:7a:3e:26:4d:90:0a:ef:c8:bc:23:e4:cf: | |
91:a9:f2:ef:58:25:a1:13:8c:f6:b4:02:19:1f:80: | |
3e:ec:67:34:72:d3:96:51:68:38:c2:6d:42:d0:1b: | |
d3:1c:6f:9f:00:8d:c0:b4:6d:49:01:29:8a:33:06: | |
26:34:7e:b0:5b:27:e0:9e:ca:94:27:dd:3b:5a:84: | |
45:42:ee:19:3c:41:3b:ca:e2:a7:58:9d:68:ca:64: | |
f9:fb:ca:50:c1:c9:8b:e9:50:c1:46:f1:7e:c1:de: | |
17:e4:e4:ff:04:fc:b8:96:f6:cd:03:31:75:fe:91: | |
4f:fb | |
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:grevi.ch, DNS:justin.grevi.ch, DNS:sri.grevi.ch, DNS:kristin.grevi.ch, DNS:soundb.us, DNS:fugacio.us | |
Signature Algorithm: sha1WithRSAEncryption | |
a2:cb:72:0c:3f:92:e5:7c:08:c9:8f:e5:89:e6:88:89:f8:ec: | |
78:7f:7c:b4:a1:a7:54:3c:12:26:b2:b4:b8:25:aa:7c:71:12: | |
29:f9:d4:25:d6:60:eb:5a:5b:30:ef:aa:09:9a:4c:ff:5d:8d: | |
70:31:f9:a5:57:8d:92:c5:5f:8a:1e:2e:ef:24:5e:af:e1:86: | |
4e:4c:99:48:1b:7b:98:f6:87:53:3e:66:6c:f0:78:9e:4f:53: | |
bc:4d:59:e2:4a:59:8d:c7:68:ac:32:c3:a3:75:af:eb:6f:76: | |
f9:30:08:91:07:c3:f2:f9:ff:3d:10:47:a4:08:66:a7:96:45: | |
df:13:77:1e:b4:87:ad:bd:1b:7a:40:ce:f5:e1:54:1e:c6:31: | |
ba:e7:a3:58:aa:b3:6d:c1:8b:7a:e5:6b:7b:ee:e3:bf:e0:b6: | |
0d:4b:ff:71:29:43:cb:29:b6:10:fe:f4:51:15:cf:0c:74:3f: | |
56:cb:42:a4:03:23:e4:83:be:77:fb:16:ca:18:f0:23:31:b2: | |
11:12:51:c5:39:14:10:99:87:e0:20:3c:9f:51:41:10:3f:ed: | |
8b:70:9b:26:a0:7d:2a:dd:5c:c4:86:c9:2e:40:cc:93:af:60: | |
e2:3f:36:eb:33:04:4e:fd:2d:7a:42:35:f9:a3:e5:31:e2:bf: | |
4c:b4:c0:49 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment