blob: cf4cded58135ad5cbead4cc6bb291311efe73541 [file] [log] [blame]
[Created by: generate-chains.py]
A certificate tree with two self-signed root certificates(oldroot, newroot),
and a third root certificate (newrootrollover) which has the same key as newroot
but is signed by oldroot, all with the same subject and issuer.
There are two intermediates with the same key, subject and issuer
(oldintermediate signed by oldroot, and newintermediate signed by newroot).
The target certificate is signed by the intermediate key.
In graphical form:
oldroot-------->newrootrollover newroot
| | |
v v v
oldintermediate newintermediate
| |
+------------+-------------+
|
v
target
Several chains are output:
key-rollover-oldchain.pem:
target<-oldintermediate<-oldroot
key-rollover-rolloverchain.pem:
target<-newintermediate<-newrootrollover<-oldroot
key-rollover-longrolloverchain.pem:
target<-newintermediate<-newroot<-newrootrollover<-oldroot
key-rollover-newchain.pem:
target<-newintermediate<-newroot
All of these chains should verify successfully.
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
60:cf:3c:af:c2:01:a7:ee:48:ed:83:9c:13:19:f0:c1:ff:af:13:68
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=Intermediate
Validity
Not Before: Jan 1 12:00:00 2015 GMT
Not After : Jan 1 12:00:00 2016 GMT
Subject: CN=Target
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:ef:77:94:e8:68:c5:7e:1d:9b:ae:10:cd:d5:bb:
96:27:0c:05:17:f4:ec:bc:da:7d:28:e5:b7:e5:8f:
da:d8:ae:7a:2a:d2:e3:15:9b:12:62:79:02:61:3d:
3f:8b:64:4e:fb:7d:e1:59:bd:2f:83:ad:d3:b8:e5:
45:33:c4:13:5f:79:ef:8a:3e:c0:39:20:81:e2:98:
b9:e6:c9:60:b6:8e:b4:bf:b4:2b:55:ae:b1:7c:21:
d3:fe:ec:f0:56:31:fe:0a:19:c4:2c:54:a4:97:aa:
84:a2:83:f8:5a:9a:f3:11:b8:ad:3b:14:3a:68:5a:
72:24:49:6f:6f:5a:02:39:91:07:09:cb:18:57:13:
1e:a4:54:03:31:5c:b6:e9:7d:78:2d:e8:ba:2f:70:
17:0a:03:11:aa:90:c7:5e:f0:1b:7f:56:39:f5:e0:
1f:1e:33:8d:23:30:e6:7a:ba:5e:ca:46:33:13:04:
5c:65:b0:be:53:7f:ab:a7:9f:8d:fb:bd:46:e5:87:
44:31:55:e5:9f:97:7e:a3:ec:69:a8:d7:8b:47:ae:
48:ae:74:50:5e:57:55:31:ca:36:ec:43:a1:dd:61:
b2:18:12:6a:29:0b:63:24:d5:71:4d:da:e7:0f:0d:
e3:2c:aa:76:6b:f9:2c:93:c2:fa:f9:40:2c:1b:34:
65:53
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
FA:2D:AF:E0:5F:8E:8E:18:7A:FB:AF:FE:D9:C9:A3:62:AA:B8:2A:18
X509v3 Authority Key Identifier:
keyid:CC:72:60:F0:8D:8C:CB:A9:6C:FF:09:57:F3:6A:FE:29:46:24:26:5B
Authority Information Access:
CA Issuers - URI:http://url-for-aia/Intermediate.cer
X509v3 CRL Distribution Points:
Full Name:
URI:http://url-for-crl/Intermediate.crl
X509v3 Key Usage: critical
Digital Signature, Key Encipherment
X509v3 Extended Key Usage:
TLS Web Server Authentication, TLS Web Client Authentication
Signature Algorithm: sha256WithRSAEncryption
01:db:ae:1e:db:9c:37:2a:1c:f6:44:c8:55:cb:39:9d:88:f5:
72:27:94:80:ec:51:ce:86:c3:64:b9:7f:f6:c2:83:38:9c:66:
27:44:94:31:28:bc:ed:37:dc:bd:7c:84:d5:c6:44:74:ef:81:
54:01:78:55:d0:59:60:99:bc:ab:bb:6a:45:0b:50:f9:de:d4:
3e:ce:ed:1a:26:8f:8b:6c:2d:3a:b2:e8:4b:17:c4:b8:d6:41:
4e:fa:8c:af:70:44:6f:30:71:f5:92:62:7e:db:19:f2:67:18:
e9:17:a6:98:b7:9e:7e:df:69:0c:d9:ad:65:b8:0b:5c:1d:c0:
a9:4c:e4:1b:2c:56:57:36:3b:8f:50:26:a6:7e:95:4b:06:d6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GlhdGUuY2VyMDQGA1UdHwQtMCswKaAnoCWGI2h0
dHA6Ly91cmwtZm9yLWNybC9JbnRlcm1lZGlhdGUuY3JsMA4GA1UdDwEB/wQEAwIF
oDAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQAD
ggEBAAHbrh7bnDcqHPZEyFXLOZ2I9XInlIDsUc6Gw2S5f/bCgzicZidElDEovO03
3L18hNXGRHTvgVQBeFXQWWCZvKu7akULUPne1D7O7Romj4tsLTqy6EsXxLjWQU76
jK9wRG8wcfWSYn7bGfJnGOkXppi3nn7faQzZrWW4C1wdwKlM5BssVlc2O49QJqZ+
lUsG1mcdDrRYp8HCN8qHOobnB988VRMY6FuNCNIwBBveP/PrIW+Z4lxSbzcf2ZNF
5YGdS9sMb1X95G2YrIh7Gki46CTtps/p9uKpcWDN15AOw5KzV+zaL0iER8iRxFAe
8MSRmYtP8TVlwauiShIbz71oHL8=
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
52:7c:19:50:39:c6:38:0e:14:9f:b2:17:b8:81:f7:cf:f8:66:d1:95
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=Root
Validity
Not Before: Jan 2 12:00:00 2015 GMT
Not After : Jan 1 12:00:00 2016 GMT
Subject: CN=Intermediate
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:9d:2b:d3:86:6e:f6:af:a0:b2:08:23:93:2a:c0:
1c:02:49:c6:ef:a9:64:39:4e:80:6a:36:56:e5:a5:
93:0e:45:12:ad:05:41:9a:5d:cc:ed:af:2e:7b:b6:
cf:bd:14:79:8f:a5:59:16:02:fe:23:5c:2b:e4:90:
d2:67:7c:bb:74:cb:37:20:40:c4:62:fa:e0:23:f1:
a4:89:70:fe:54:ea:ea:3b:d7:1a:7a:9b:0d:a1:74:
44:89:c9:58:3d:d6:99:42:6b:e5:da:f5:f1:0c:33:
26:11:e1:d4:2b:33:d7:2e:be:b9:42:5d:e7:b2:ce:
52:37:51:30:17:80:a7:77:e0:ca:55:ac:42:12:23:
17:d6:42:5a:6d:55:1f:f8:f1:13:7b:73:7d:b6:ff:
b7:67:72:d8:55:af:8e:60:71:cd:b8:a4:72:9f:84:
d8:6f:a6:62:1a:0f:79:de:3e:27:a5:08:bc:90:20:
f6:a3:b2:64:21:92:3e:1c:8c:35:f5:38:16:96:18:
f1:5c:de:fd:89:b6:4d:ca:00:0a:59:91:84:9a:28:
ea:1c:8f:0d:14:aa:4b:e5:56:66:9e:40:36:35:ff:
dc:72:f3:ea:e3:7f:b4:73:64:66:ff:81:16:b9:93:
8e:61:30:7f:15:2e:1d:6c:23:90:76:56:b2:60:11:
91:19
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
CC:72:60:F0:8D:8C:CB:A9:6C:FF:09:57:F3:6A:FE:29:46:24:26:5B
X509v3 Authority Key Identifier:
keyid:01:6B:49:1F:21:8F:80:DD:D4:97:C0:A8:BB:2A:7E:DC:F3:DA:FD:E1
Authority Information Access:
CA Issuers - URI:http://url-for-aia/Root.cer
X509v3 CRL Distribution Points:
Full Name:
URI:http://url-for-crl/Root.crl
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Basic Constraints: critical
CA:TRUE
Signature Algorithm: sha256WithRSAEncryption
58:20:51:07:c1:79:72:0f:8d:3b:34:8d:af:79:8a:f4:65:dd:
f6:62:8c:28:b1:e3:91:7a:c1:e0:75:11:6e:f4:cf:90:04:39:
8f:08:19:c9:d5:3b:61:4a:30:5c:f1:dd:93:1d:b0:05:d0:2b:
f4:a0:ce:4a:8d:10:f9:ce:47:92:a1:84:8a:5d:42:62:e4:81:
4d:8d:2a:49:cf:41:b7:1f:b8:ef:62:68:80:64:52:b5:b4:e8:
9c:33:10:85:f6:2d:18:0c:a1:cd:a7:6d:2a:b6:73:a8:3d:4c:
64:c3:3a:33:11:8b:6b:0c:68:86:ab:28:c8:e2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wYIKwYBBQUHAQEEKzApMCcGCCsGAQUFBzAChhtodHRwOi8vdXJs
LWZvci1haWEvUm9vdC5jZXIwLAYDVR0fBCUwIzAhoB+gHYYbaHR0cDovL3VybC1m
b3ItY3JsL1Jvb3QuY3JsMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/
MA0GCSqGSIb3DQEBCwUAA4IBAQBYIFEHwXlyD407NI2veYr0Zd32YowoseOResHg
dRFu9M+QBDmPCBnJ1TthSjBc8d2THbAF0Cv0oM5KjRD5zkeSoYSKXUJi5IFNjSpJ
z0G3H7jvYmiAZFK1tOicMxCF9i0YDKHNp20qtnOoPUxkwzozEYtrDGiGqyjI4iGg
JnjtFfYUPNAZ6tKIO+3eyJlLdP+q04AbXfD0CDMoM+kK6AcMxKv2jD0IWkuRhEVW
haCSWei06MaSDdsa/txPrLZcfm/lVhSF9HQz+B7rM9ALdKbvTjvnd8SSJk5d4s1u
3Pcl7pK5sEhdRuWpUKi7aFfL+H8H97JUl/luVBxTCc7Aa/Hx
-----END CERTIFICATE-----
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
52:7c:19:50:39:c6:38:0e:14:9f:b2:17:b8:81:f7:cf:f8:66:d1:94
Signature Algorithm: sha256WithRSAEncryption
Issuer: CN=Root
Validity
Not Before: Jan 2 12:00:00 2015 GMT
Not After : Jan 1 12:00:00 2016 GMT
Subject: CN=Root
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:c7:04:19:c8:b2:fc:28:77:e5:99:8e:f0:05:8b:
0d:5b:e5:38:f1:8e:d1:07:d2:f6:d8:6b:bd:c8:c3:
2c:f3:05:e9:1f:4c:b6:c1:39:d4:0f:03:2f:62:ba:
e7:c4:7e:9c:7c:1c:be:df:6b:f2:34:b2:45:ec:b9:
76:a5:3a:25:1c:a1:b7:78:76:0c:e8:3d:76:d1:46:
bd:20:e1:ef:1c:80:22:12:b5:8a:de:78:4f:ed:05:
25:5d:b4:83:4c:9e:b2:ee:64:b5:df:d9:d1:b7:5f:
3c:e9:8a:e1:e1:49:bd:d6:7c:fe:4a:38:f1:94:9a:
b5:cc:cf:85:aa:bd:bb:2d:93:b9:a9:2b:c1:f9:82:
c0:ba:68:a5:90:4f:e1:d4:30:6f:99:c4:d9:6c:e8:
6a:0c:71:a8:ff:c4:7f:b5:9a:e6:07:a0:ed:f4:3c:
3a:4b:a3:88:b1:41:cf:f1:b8:ea:f8:b7:43:b0:9f:
88:05:eb:cd:ab:27:f5:ed:62:55:05:3d:62:59:b4:
1c:07:ca:c4:49:3d:07:80:93:13:ff:0f:31:4f:34:
41:9e:5b:a9:0a:79:fa:13:91:da:7c:35:c4:7b:56:
9c:a1:89:05:7d:6e:12:e5:e4:83:be:9a:5e:14:cd:
fc:27:58:ae:f5:26:83:36:a4:04:61:a7:4a:01:2f:
1a:4f
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
01:6B:49:1F:21:8F:80:DD:D4:97:C0:A8:BB:2A:7E:DC:F3:DA:FD:E1
X509v3 Authority Key Identifier:
keyid:01:6B:49:1F:21:8F:80:DD:D4:97:C0:A8:BB:2A:7E:DC:F3:DA:FD:E1
Authority Information Access:
CA Issuers - URI:http://url-for-aia/Root.cer
X509v3 CRL Distribution Points:
Full Name:
URI:http://url-for-crl/Root.crl
X509v3 Key Usage: critical
Certificate Sign, CRL Sign
X509v3 Basic Constraints: critical
CA:TRUE
Signature Algorithm: sha256WithRSAEncryption
2c:4d:7f:fd:1c:4e:6a:f0:7b:d1:a6:d2:92:35:0a:bb:00:96:
f6:87:a2:8f:c8:20:51:fe:34:1b:e2:72:e0:52:ce:33:14:b8:
9a:fb:2d:71:5d:cb:77:1e:47:cb:00:f3:e8:12:54:1a:d4:02:
e7:ee:4b:21:d2:b0:7e:df:a3:47:f2:0a:15:fe:b8:e6:7f:85:
97:eb:2f:8d:1d:9d:0d:ba:34:ce:10:a9:a8:36:b8:ea:95:83:
28:10:4b:09:2f:c6:7d:b4:9c:d7:20:cc:af:9f:99:36:67:a9:
09:27:99:98:e5:10:6e:1b:ad:a1:46:0f:2f:82:98:98:28:30:
72:33:1f:7a:24:fd:61:17:5d:23:a3:ca:70:76:a4:95:b8:7c:
84:d7:f8:68:bd:23:27:34:0b:0f:65:c0:74:2f:28:94:46:73:
e3:7c:1a:f6:11:36:13:9b:16:5a:92:84:85:6d:59:88:85:82:
b5:43:22:fd:f5:9f:2d:82:27:cb:40:a4:b9:6c:50:7d:31:af:
3f:cf:83:57:72:e5:d4:6b:5e:9d:97:d1:bf:a5:0a:0d:00:88:
3d:25:b4:5c:a5:62:00:69:22:4e:ef:07:39:cf:74:33:7e:bb:
03:07:57:49:38:d7:5c:3c:43:bf:cd:fe:af:1a:75:24:4d:a5:
f9:63:2c:bf
-----BEGIN CERTIFICATE-----
MIIDeDCCAmCgAwIBAgIUUnwZUDnGOA4Un7IXuIH3z/hm0ZQwDQYJKoZIhvcNAQEL
BQAwDzENMAsGA1UEAwwEUm9vdDAeFw0xNTAxMDIxMjAwMDBaFw0xNjAxMDExMjAw
MDBaMA8xDTALBgNVBAMMBFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
AoIBAQDHBBnIsvwod+WZjvAFiw1b5TjxjtEH0vbYa73IwyzzBekfTLbBOdQPAy9i
uufEfpx8HL7fa/I0skXsuXalOiUcobd4dgzoPXbRRr0g4e8cgCIStYreeE/tBSVd
tINMnrLuZLXf2dG3XzzpiuHhSb3WfP5KOPGUmrXMz4Wqvbstk7mpK8H5gsC6aKWQ
T+HUMG+ZxNls6GoMcaj/xH+1muYHoO30PDpLo4ixQc/xuOr4t0Own4gF682rJ/Xt
YlUFPWJZtBwHysRJPQeAkxP/DzFPNEGeW6kKefoTkdp8NcR7VpyhiQV9bhLl5IO+
ml4UzfwnWK71JoM2pARhp0oBLxpPAgMBAAGjgcswgcgwHQYDVR0OBBYEFAFrSR8h
j4Dd1JfAqLsqftzz2v3hMB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