back-port the new test SSL cert from master

This commit is contained in:
arvidn 2018-11-09 09:15:51 +01:00 committed by Arvid Norberg
parent cec300234c
commit 7bb828af6e
6 changed files with 188 additions and 186 deletions

View File

@ -1,8 +1,8 @@
-----BEGIN DH PARAMETERS-----
MIIBCAKCAQEAkAw6MH42r7NeMH2PeaHqt+OW+0CznNyUQxXeVl/Rab/hYwsaBiGH
6bm/32zlb9A09g8kZS4vGWY3TJDTaTtNZVAGKPWRqtAlh4YQOy66eFVY0NhEGlHb
ETTJCIaHxY+OphYeV1CvwCtiNIGUW24NORB2DTSj66jTJ2/46LWktIWdn5gYBPoH
e3cXJXEvmnlzfRYgLrOTmYyTtppV2LUrjUuSDvhaulSsuijPv1GNBZlNLVthydZ9
RbuqOb5RmRqILfuwcgr2YmdufQ0rKxRnMbfKDajBHKxBhwroLL1R923F+uXfzRsg
FN7Je4vnKVrODg9d82TTsxEM7A4XrMn1mwIBAg==
MIIBCAKCAQEA1Qps5gSFEOvOEhMwWJyPL0JU0KcBM0cIycj4sdIwBiRbV0RgSrO1
2QtwBmS4uYRH4on2Xatx8mqOGansACdc3Mq5OLTpx2cAQS9MAZxhqHyH18qNnoDo
LsGP6M1jEa2RNBql822ySXDCr57IZj99m5+7LPazYF97Grx0M7TGD9vodnGeDInN
mxSpdXfDHmGrBDt1J+Y7UKqs45ZG319HlrR88j5uf/KodOO4GO7E5WLq4JYNTk3A
Osk+ygr4JBGSlnGBYbVUdKDAgrLCdnbhyGJBJAWHworIGFlsxx681rnjZ3Z3hrus
+G1lPjcmz2aurwC5vL6tmcpkBg+3tZAvywIBAg==
-----END DH PARAMETERS-----

View File

@ -1,35 +1,36 @@
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 16401505873524892479 (0xe39ddab16cef233f)
Signature Algorithm: sha1WithRSAEncryption
Serial Number:
a6:49:54:a6:89:93:53:60
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=test
Validity
Not Before: Nov 1 14:18:00 2017 GMT
Not After : Nov 1 14:18:00 2018 GMT
Not Before: Nov 2 23:39:18 2018 GMT
Not After : Nov 2 23:39:18 2019 GMT
Subject: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=*
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:e4:b7:31:a6:b1:46:57:4b:74:a1:8a:52:a2:10:
be:36:b8:2e:2a:57:b9:52:95:47:6a:8a:8e:df:dc:
a3:c9:a3:d6:63:2e:85:b8:d4:b3:f5:f4:14:77:26:
5c:2d:7e:ba:16:e0:96:80:8c:26:4c:8a:e0:b1:00:
95:7d:30:19:78:30:73:35:cd:3b:3b:f5:b6:dd:f4:
51:37:16:2e:99:96:d0:f8:77:f7:4a:87:0b:76:7e:
e9:02:ac:11:85:d1:13:0d:94:96:6e:2f:85:36:03:
32:cd:22:b2:b3:9c:b5:78:e7:c8:40:b8:1d:7d:fa:
ab:48:c6:59:a5:79:3d:14:44:d1:b3:7e:11:8a:51:
6c:04:52:53:eb:8a:0f:bc:c9:8d:d2:fa:54:13:43:
62:cc:19:85:61:cb:c8:bb:1d:88:ee:d8:36:97:0e:
d0:d7:64:4c:79:f0:1c:52:fa:b9:f4:ff:91:78:8a:
a2:a5:a9:2e:9a:8d:a1:d0:60:6d:9a:f1:04:80:cb:
b6:3e:55:cb:db:26:70:35:3c:ca:ee:70:ff:26:f1:
54:b8:f2:4b:0c:00:c1:0f:b3:36:75:dd:45:ea:fe:
e1:c7:27:21:fb:0e:1e:57:08:d5:4a:77:dc:85:dc:
b7:97:67:4d:3e:a2:2e:fa:61:63:ad:ee:6b:35:b1:
1e:ef
00:f1:0b:dc:2a:78:1e:04:07:36:f1:22:6e:e1:f7:
b6:13:de:2b:9d:ab:8a:32:7b:84:26:e0:98:48:59:
c4:53:fc:a9:d6:38:e2:87:0f:a6:17:f2:90:48:2a:
cb:99:f2:c6:cd:3d:d1:eb:30:13:58:3e:8f:c4:d6:
b3:9c:e8:de:b8:65:04:01:a9:1f:dd:6e:43:10:82:
88:08:1b:72:a6:dd:d3:89:18:28:62:b6:8f:53:46:
f2:f4:37:d6:e9:b3:33:67:60:ee:d3:e0:47:7d:0f:
38:9e:1f:9d:60:2f:b3:12:02:eb:d3:ee:db:54:85:
79:16:9b:e2:d1:38:55:1b:ae:e8:12:5b:e6:23:43:
20:54:cf:0c:f5:9f:fe:40:fd:fe:27:4e:e5:ac:63:
f4:6b:9f:82:dc:0d:6d:6e:a2:14:5e:17:67:65:17:
b4:37:78:24:08:c5:01:83:f8:67:8f:f1:a0:7f:a5:
50:81:2a:d5:89:2f:b4:7f:14:e5:fe:45:bf:ee:ec:
ba:c1:30:e3:6a:f1:15:52:88:cb:be:ea:38:fd:43:
3d:66:3d:06:f9:5b:7c:46:6d:2f:54:33:4e:1d:1d:
7c:f8:9b:1e:52:ce:1f:79:64:2a:1d:5a:97:db:77:
c0:d7:ff:0b:be:83:0d:a5:08:17:77:48:e7:a9:40:
aa:c1
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
@ -37,45 +38,45 @@ Certificate:
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
1D:F7:51:09:3A:01:2F:B3:0C:26:E4:43:EE:A6:67:30:B5:30:93:F0
FE:63:9F:EB:7C:FD:DD:A1:5F:9E:0A:09:9B:52:5D:76:1B:8C:C6:0A
X509v3 Authority Key Identifier:
keyid:74:98:02:FA:11:B6:2A:BD:53:F4:64:92:85:8E:BF:1C:64:86:00:AF
keyid:1F:7A:B8:01:77:75:AD:E0:62:E6:C6:AD:0C:A8:50:33:47:F3:2D:33
Signature Algorithm: sha1WithRSAEncryption
55:1a:c2:1c:b9:75:96:27:29:d3:6a:16:29:66:a5:3b:1b:76:
a3:07:55:c6:ef:70:41:85:58:4d:36:61:cb:27:2c:17:cb:3f:
79:e4:4e:68:1e:02:74:3d:73:84:bf:29:65:67:c7:9a:6a:24:
b1:73:e0:63:ba:cb:50:51:b8:2c:37:80:bc:88:47:c6:9c:5a:
9c:4c:31:8a:73:b7:2a:6b:be:d2:6f:7b:02:d4:28:e1:c9:e9:
c6:c4:51:7e:a6:5a:cd:dd:23:92:43:f8:40:e5:37:9a:84:32:
94:70:09:3f:01:5c:b8:11:35:4e:f6:17:fd:c8:27:85:c5:3c:
6e:35:db:d4:82:04:94:bf:31:6d:ab:f0:8b:bc:62:27:61:36:
15:ed:9f:5e:20:dd:de:6b:13:a0:93:35:4c:18:12:fc:db:0e:
fb:9f:d0:6e:14:04:e1:ee:e6:8b:e3:bf:08:25:be:25:cb:78:
f5:11:b9:79:6a:ff:0d:82:e3:33:2b:d8:78:6a:1a:a9:51:fb:
04:8f:87:5e:7b:98:e7:91:27:27:05:41:97:9a:51:7a:72:e8:
e0:81:74:f8:04:2e:d5:48:ac:1a:61:71:ab:32:d7:cd:fc:27:
4d:0b:44:79:03:84:df:76:5b:a4:c2:9e:ae:25:5d:06:74:30:
a9:60:1a:18
Signature Algorithm: sha256WithRSAEncryption
4c:13:55:fe:43:04:f4:b3:af:e0:1c:b2:05:3b:24:73:17:d6:
bf:83:b5:f2:e1:25:3b:ba:19:f5:1b:dd:74:96:35:1e:ec:80:
1e:5c:c5:40:db:83:26:c5:fe:64:1a:12:4f:d4:b7:2a:03:13:
2b:e9:e0:0f:a2:f7:66:88:3d:ac:f4:fe:43:a3:1e:63:ea:56:
9b:97:ae:71:7c:df:ef:7c:57:ff:52:7f:08:68:46:0a:1c:90:
bd:5f:b8:c1:6e:4a:f6:7b:f0:02:ef:8a:72:d7:c4:6c:99:d9:
fb:f8:00:03:7d:6d:c5:41:c3:ab:eb:df:c1:21:ac:2b:ba:66:
44:dd:d7:c9:46:46:b0:f5:48:fe:6a:24:b8:1b:cf:6f:44:cf:
60:ab:e8:65:f3:47:cd:ce:21:01:e2:49:c8:97:fa:08:4e:b9:
ca:bd:78:db:6b:27:d8:0f:e1:8f:f6:36:b8:f5:2d:0a:c9:4f:
3c:bd:c6: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bJB+VHx3nSW/LEm0uTEPKBb1nEZKV9ey4HWmLW35nlw492ttpCeOrCuEmf6+q
tMy8GCKsf21ZxJZfm38hDs051vflZUC+oBaPFSgwj4eODZjKIBp+rGAz28sT9Jee
OPf2yrcIIpz2ls9NllVy7QACTi0OqqnnxCX/CWTfRijUuPZRutYOL57eM1lps/7d
m2wIUPW9zYpmjfi66In/Oyijx7CqaAyG+AQDetdTeDiyAI7YGU77WCFXaMd3WOXn
SVMqe/8faH949uWm6d0KHCZv3qCdM/jX6LbsJAE9AMSiZKP6+0uIUA6Pjhsns2bn
VzgOKsVOIINC08iUISYVwhW0vhZKj8N8lmsK5xYFupcLcfBhKcs9ehgSusUnkA2K
1yi9p7Lro2syOlx56X+0OzBuUPTo4q0HT+LbwxJn019DRi3dlZHK0AtLbmWMlCjX
ciBu/QZhQIPfkELKBzrXON6HHh1vpMIb3Knpi3PdQ/mn8ioTQHxjG2YbNITq+zbn
MukrxtuLybLxD4Us7KoCZOcbzEdOn3EgpEGESadcm1uCa0noZ6ITkCpytMR5qCsW
JSBZdf2QEnHxddpUl51NkRLd5WI3tdg2sYoFksahN9ix3jFjzTc7k2x11jfDF4pb
fAPxWdWf+H7E/+/fJm94Lpyk/rK4QNQUkgX4DKiZzLFIFUIN0CM28CKf8Ee1JNc+
8XEHbwtTrP7BumQ42yI2ytqCX/J6wzk7Yb7OinmvlkN2/5+ME1Hz2tllCk8aW7uY
noPy0aaakFyV2gdCHcNzQiMdr/z1oe7izuUuZ4bDNEaKhY1VFh0jKvZ8pJfoep17
paL+2JdhEQ+jdKZKNSQ+WA==
-----END ENCRYPTED PRIVATE KEY-----

View File

@ -2,26 +2,26 @@
set -e
PATH=$PATH:/usr/local/etc/openssl/misc
PATH=$PATH:/usr/local/etc/openssl/misc:/usr/lib/ssl/misc
rm -rf demoCA
printf "\n\n ======== \x1b[33muse passphrase: \"test\" \x1b[0m=========\n\n"
printf "\n\n ======== \x1b[33muse common name: \"test\" \x1b[0m=========\n\n"
printf "\n\n ======== \e[33muse passphrase: \"test\" \e[0m=========\n\n"
printf "\n\n ======== \e[33muse common name: \"test\" \e[0m=========\n\n"
CA.sh -newca
CA.pl -newca
cp ./demoCA/cacert.pem root_ca_cert.pem
cp ./demoCA/private/cakey.pem root_ca_private.pem
printf "\n\n ======== \x1b[33muse passphrase: \"test\" \x1b[0m=========\n\n"
printf "\n\n ======== \x1b[33muse common name: * \x1b[0m=========\n\n"
printf "\n\n ======== \e[33muse passphrase: \"test\" \e[0m=========\n\n"
printf "\n\n ======== \e[33muse common name: * \e[0m=========\n\n"
CA.sh -newreq
CA.pl -newreq
cp newkey.pem peer_private_key.pem
CA.sh -sign
CA.pl -sign
cp newcert.pem peer_certificate.pem

View File

@ -1,78 +1,79 @@
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 16401505873524892478 (0xe39ddab16cef233e)
Signature Algorithm: sha1WithRSAEncryption
Serial Number:
a6:49:54:a6:89:93:53:5f
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=test
Validity
Not Before: Nov 1 14:17:41 2017 GMT
Not After : Oct 31 14:17:41 2020 GMT
Not Before: Nov 2 23:39:03 2018 GMT
Not After : Oct 30 23:39:03 2028 GMT
Subject: C=AU, ST=Some-State, O=Internet Widgits Pty Ltd, CN=test
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
Public-Key: (2048 bit)
Modulus:
00:c4:73:fa:40:3b:53:9f:86:ce:98:96:01:cd:10:
2d:82:bb:9e:94:f8:76:7d:cf:f5:32:c5:77:08:72:
35:89:ca:6b:e4:b0:13:50:98:25:78:ba:f0:f8:30:
3e:8f:04:3f:fa:9e:68:ec:4f:ab:63:04:4a:0d:1d:
54:c0:82:03:de:ec:7d:cf:f8:ef:23:82:61:09:26:
13:cf:6d:9b:a5:2b:e2:2e:34:f7:2b:5c:56:1b:20:
e5:bb:23:fc:10:7a:27:0b:a3:0b:59:90:2d:a5:19:
e5:05:2e:39:78:49:34:19:91:d0:3e:23:9c:32:5c:
5f:a8:29:fd:2d:38:b7:ee:a7:e3:c2:5e:6d:d4:e3:
07:b9:39:f1:00:f2:57:b8:38:d1:e6:d8:10:28:22:
df:3f:8d:af:85:26:b5:ce:c8:d3:5e:7a:d7:46:5e:
19:a2:f7:17:44:21:d3:91:f8:46:26:b7:1d:55:e6:
e6:8a:6e:86:aa:1e:56:75:22:df:9b:43:65:42:3b:
5a:96:0f:f8:54:55:19:00:b5:57:04:25:c5:4b:cf:
db:8b:e6:52:3e:59:a6:ae:43:52:9a:70:d5:f8:2d:
5a:43:07:c6:ee:39:4b:46:0b:0e:45:a5:b7:dd:69:
e8:2e:71:9f:05:7c:6a:1d:85:8f:a5:f6:aa:a2:cb:
65:c3
00:cf:42:13:5a:fc:e9:cd:d9:9e:5a:c9:79:7c:29:
b8:7b:a4:53:6d:03:2e:55:eb:de:f7:b6:de:30:76:
41:c1:27:52:65:b9:f0:8d:56:02:04:85:d5:b4:cc:
db:7f:b9:e2:f0:99:ef:05:ac:5b:cb:16:65:a7:18:
c0:86:0f:9b:de:98:fa:d5:46:63:30:6d:d2:91:fe:
6d:fb:08:13:f3:08:32:38:7b:c3:a1:3b:c2:4f:ca:
b5:31:b1:e0:4d:f0:4f:a0:bf:22:d4:c1:e1:82:27:
40:46:c1:0d:ac:c1:28:4d:39:37:5c:a9:64:32:d9:
3a:bc:13:b7:a7:7f:95:7f:3b:b3:8f:12:23:03:58:
dc:56:05:72:0b:74:55:36:6c:f9:a8:f3:f9:b8:f1:
57:81:d1:78:11:d9:3b:63:11:ea:01:40:3e:2a:5a:
a2:2e:a4:ea:c7:57:86:b2:aa:9e:5a:63:66:60:ee:
a5:04:23:83:d5:48:d9:4b:28:e9:c1:a6:c2:66:fb:
c3:5f:89:70:c9:e5:b6:9c:2c:2a:49:e3:8b:a3:f7:
a0:5c:38:01:3f:6d:21:5a:8e:a8:38:24:82:22:1f:
c2:ec:e6:cc:f2:7c:60:80:bb:8d:4a:72:42:8d:48:
6f:0f:c5:bc:25:9e:91:f6:63:63:d5:4e:04:15:fe:
d4:c1
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
74:98:02:FA:11:B6:2A:BD:53:F4:64:92:85:8E:BF:1C:64:86:00:AF
1F:7A:B8:01:77:75:AD:E0:62:E6:C6:AD:0C:A8:50:33:47:F3:2D:33
X509v3 Authority Key Identifier:
keyid:74:98:02:FA:11:B6:2A:BD:53:F4:64:92:85:8E:BF:1C:64:86:00:AF
keyid:1F:7A:B8:01:77:75:AD:E0:62:E6:C6:AD:0C:A8:50:33:47:F3:2D:33
X509v3 Basic Constraints:
X509v3 Basic Constraints: critical
CA:TRUE
Signature Algorithm: sha1WithRSAEncryption
7c:41:90:e9:74:9a:ba:32:da:27:27:1d:fc:49:56:30:70:f1:
96:14:46:a6:a7:b6:0f:0a:04:9e:d5:0f:3a:4d:c0:14:33:92:
5f:db:d6:26:e8:8f:97:0b:50:16:c1:2d:c5:8a:79:99:b6:52:
41:98:8a:10:9f:39:38:50:1f:10:c5:cc:5e:4f:90:43:a3:8e:
74:71:9d:2d:f6:3f:d7:88:f4:fb:1a:01:3e:aa:ea:e5:52:c1:
23:d1:e9:3b:1c:17:4c:62:ff:72:27:8c:eb:a1:c5:ba:1d:eb:
96:c0:4a:b3:dd:6b:67:d0:6f:37:1c:11:a8:aa:25:5e:af:87:
9e:c2:29:6c:83:5d:13:a0:1c:46:8c:0a:83:f6:cc:02:3c:d4:
d3:ca:3c:11:8f:96:26:56:19:57:4f:0a:98:5c:4a:b8:10:b7:
a5:7f:2c:38:e0:f3:d4:68:31:de:53:47:36:21:f1:86:6d:8d:
07:d2:cf:58:a8:96:a3:03:52:1b:fb:24:0b:17:28:da:20:06:
4f:ca:52:76:23:f3:81:c6:e9:32:08:bc:f3:05:ce:1c:5d:f1:
c9:80:7c:68:f0:f6:eb:4c:8f:b6:30:88:53:5c:01:92:f4:64:
4c:9b:0a:13:ab:1e:7f:82:6a:f1:92:e0:84:66:2e:87:fb:f9:
6d:a9:cf:a0
Signature Algorithm: sha256WithRSAEncryption
27:74:1e:29:85:e9:52:92:67:84:ad:3b:9b:f7:10:64:7f:fd:
f2:54:46:bb:be:3b:89:07:e9:f8:ed:1a:e6:91:56:a5:96:80:
94:52:fc:90:24:e4:e1:d9:43:6d:69:d0:e3:a3:cc:39:4f:8c:
5e:70:af:b8:a4:88:87:5b:6e:20:3b:df:52:07:20:f7:43:97:
ad:7b:42:61:52:86:6e:9b:ac:7c:83:3a:5e:77:f3:75:37:82:
52:30:55:10:2a:f2:aa:32:c3:48:61:b3:8f:a1:28:2a:77:48:
03:d6:10:1a:53:ab:9e:47:38:78:10:2b:43:41:90:4c:eb:c4:
d7:5f:df:d3:92:86:ab:82:d7:25:38:bd:06:6c:ac:2c:c3:97:
49:af:6d:62:98:44:cb:05:f7:5f:c2:0a:d2:c5:3a:e0:24:3b:
33:bc:68:08:5b:e5:98:2b:a8:f3:57:c9:49:b5:84:96:d7:4a:
00:a5:b4:2e:39:a6:59:a5:0d:24:a7:69:31:bd:4b:11:cc:b9:
80:ae:d4:4a:db:ba:d2:75:f5:c7:0b:61:d9:4f:58:ca:9f:a0:
a2:7a:37:b9:ac:76:cf:6f:a3:89:b3:35:a2:08:5a:4c:bc:0d:
6f:77:1c:67:9c:1c:f8:9c:46:9c:22:74:e9:1f:6f:f6:f3:5b:
d5:61:d3:c9
-----BEGIN CERTIFICATE-----
MIIDezCCAmOgAwIBAgIJAOOd2rFs7yM+MA0GCSqGSIb3DQEBBQUAMFQxCzAJBgNV
MIIDfjCCAmagAwIBAgIJAKZJVKaJk1NfMA0GCSqGSIb3DQEBCwUAMFQxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQxDTALBgNVBAMMBHRlc3QwHhcNMTcxMTAxMTQxNzQxWhcN
MjAxMDMxMTQxNzQxWjBUMQswCQY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