Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/cert/ev_root_ca_metadata.h" | 5 #include "net/cert/ev_root_ca_metadata.h" |
| 6 | 6 |
| 7 #if defined(USE_NSS_CERTS) | 7 #if defined(USE_NSS_CERTS) |
| 8 #include <cert.h> | 8 #include <cert.h> |
| 9 #include <pkcs11n.h> | 9 #include <pkcs11n.h> |
| 10 #include <secerr.h> | 10 #include <secerr.h> |
| 11 #include <secoid.h> | 11 #include <secoid.h> |
| 12 #elif defined(OS_WIN) | 12 #elif defined(OS_WIN) |
| 13 #include <stdlib.h> | 13 #include <stdlib.h> |
| 14 #elif defined(OS_MACOSX) | |
| 15 #include <openssl/obj.h> | |
| 14 #endif | 16 #endif |
| 15 | 17 |
| 16 #include "base/lazy_instance.h" | 18 #include "base/lazy_instance.h" |
| 17 #include "base/logging.h" | 19 #include "base/logging.h" |
| 18 #if defined(USE_NSS_CERTS) | 20 #if defined(USE_NSS_CERTS) |
| 19 #include "crypto/nss_util.h" | 21 #include "crypto/nss_util.h" |
| 22 #elif defined(OS_MACOSX) | |
| 23 #include "net/der/input.h" | |
| 20 #endif | 24 #endif |
| 21 | 25 |
| 22 namespace net { | 26 namespace net { |
| 23 | 27 |
| 24 #if defined(USE_NSS_CERTS) || defined(OS_WIN) | 28 #if defined(USE_NSS_CERTS) || defined(OS_WIN) || defined(OS_MACOSX) |
| 25 // Raw metadata. | 29 // Raw metadata. |
| 26 struct EVMetadata { | 30 struct EVMetadata { |
| 27 // kMaxOIDsPerCA is the number of OIDs that we can support per root CA. At | 31 // kMaxOIDsPerCA is the number of OIDs that we can support per root CA. At |
| 28 // least one CA has different EV policies for business vs government | 32 // least one CA has different EV policies for business vs government |
| 29 // entities and, in the case of cross-signing, we might need to list another | 33 // entities and, in the case of cross-signing, we might need to list another |
| 30 // CA's policy OID under the cross-signing root. | 34 // CA's policy OID under the cross-signing root. |
| 31 static const size_t kMaxOIDsPerCA = 2; | 35 static const size_t kMaxOIDsPerCA = 2; |
| 32 // This is the maximum length of an OID string (including the trailing NUL). | 36 // This is the maximum length of an OID string (including the trailing NUL). |
| 33 static const size_t kMaxOIDLength = 32; | 37 static const size_t kMaxOIDLength = 32; |
| 38 // This is the maximum length of a DER OID TLV. | |
| 39 static const size_t kMaxDerOIDLength = 16; | |
| 34 | 40 |
| 35 // The SHA-1 fingerprint of the root CA certificate, used as a unique | 41 // The SHA-1 fingerprint of the root CA certificate, used as a unique |
| 36 // identifier for a root CA certificate. | 42 // identifier for a root CA certificate. |
| 37 SHA1HashValue fingerprint; | 43 SHA1HashValue fingerprint; |
| 38 | 44 |
| 39 // The EV policy OIDs of the root CA. | 45 #if defined(USE_NSS_CERTS) || defined(OS_WIN) |
| 46 // The EV policy OIDs of the root CA, as dotted decimal strings. | |
| 40 const char policy_oids[kMaxOIDsPerCA][kMaxOIDLength]; | 47 const char policy_oids[kMaxOIDsPerCA][kMaxOIDLength]; |
| 48 #define OID(oid_string, oid_der) oid_string | |
| 49 #else | |
| 50 // The EV policy OIDs of the root CA, as DER-encoded OBJECT IDENTIFIER TLVs. | |
| 51 // (Note: encoding uses TLVs here and just values in the interfaces, because | |
| 52 // the length is needed here.) | |
| 53 const uint8_t policy_oids[kMaxOIDsPerCA][kMaxDerOIDLength]; | |
| 54 #define OID(oid_string, oid_der) oid_der | |
| 55 #endif | |
|
Ryan Sleevi
2016/11/08 00:11:20
Erk; this makes me super-nervous to extend the pla
mattm
2016/11/08 23:06:25
Ok, scrapped that.
There didn't seem to be a clea
| |
| 41 }; | 56 }; |
| 42 | 57 |
| 43 static const EVMetadata ev_root_ca_metadata[] = { | 58 static const EVMetadata ev_root_ca_metadata[] = { |
| 44 // AC Camerfirma S.A. Chambers of Commerce Root - 2008 | 59 // AC Camerfirma S.A. Chambers of Commerce Root - 2008 |
| 45 // https://www.camerfirma.com | 60 // https://www.camerfirma.com |
| 46 { | 61 { |
| 47 {{0x78, 0x6a, 0x74, 0xac, 0x76, 0xab, 0x14, 0x7f, 0x9c, 0x6a, | 62 {{0x78, 0x6a, 0x74, 0xac, 0x76, 0xab, 0x14, 0x7f, 0x9c, 0x6a, |
| 48 0x30, 0x50, 0xba, 0x9e, 0xa8, 0x7e, 0xfe, 0x9a, 0xce, 0x3c}}, | 63 0x30, 0x50, 0xba, 0x9e, 0xa8, 0x7e, 0xfe, 0x9a, 0xce, 0x3c}}, |
| 49 { | 64 { |
| 50 // AC Camerfirma uses the last two arcs to track how the private key | 65 // AC Camerfirma uses the last two arcs to track how the private key |
| 51 // is managed - the effective verification policy is the same. | 66 // is managed - the effective verification policy is the same. |
| 52 "1.3.6.1.4.1.17326.10.14.2.1.2", "1.3.6.1.4.1.17326.10.14.2.2.2", | 67 OID("1.3.6.1.4.1.17326.10.14.2.1.2", |
| 68 "\x06\x0d\x2b\x06\x01\x04\x01\x81\x87\x2e\x0a\x0e\x02\x01\x02"), | |
| 69 OID("1.3.6.1.4.1.17326.10.14.2.2.2", | |
| 70 "\x06\x0d\x2b\x06\x01\x04\x01\x81\x87\x2e\x0a\x0e\x02\x02\x02"), | |
| 53 }, | 71 }, |
| 54 }, | 72 }, |
| 55 // AC Camerfirma S.A. Global Chambersign Root - 2008 | 73 // AC Camerfirma S.A. Global Chambersign Root - 2008 |
| 56 // https://server2.camerfirma.com:8082 | 74 // https://server2.camerfirma.com:8082 |
| 57 { | 75 { |
| 58 {{0x4a, 0xbd, 0xee, 0xec, 0x95, 0x0d, 0x35, 0x9c, 0x89, 0xae, | 76 {{0x4a, 0xbd, 0xee, 0xec, 0x95, 0x0d, 0x35, 0x9c, 0x89, 0xae, |
| 59 0xc7, 0x52, 0xa1, 0x2c, 0x5b, 0x29, 0xf6, 0xd6, 0xaa, 0x0c}}, | 77 0xc7, 0x52, 0xa1, 0x2c, 0x5b, 0x29, 0xf6, 0xd6, 0xaa, 0x0c}}, |
| 60 { | 78 { |
| 61 // AC Camerfirma uses the last two arcs to track how the private key | 79 // AC Camerfirma uses the last two arcs to track how the private key |
| 62 // is managed - the effective verification policy is the same. | 80 // is managed - the effective verification policy is the same. |
| 63 "1.3.6.1.4.1.17326.10.8.12.1.2", "1.3.6.1.4.1.17326.10.8.12.2.2", | 81 OID("1.3.6.1.4.1.17326.10.8.12.1.2", |
| 82 "\x06\x0d\x2b\x06\x01\x04\x01\x81\x87\x2e\x0a\x08\x0c\x01\x02"), | |
| 83 OID("1.3.6.1.4.1.17326.10.8.12.2.2", | |
| 84 "\x06\x0d\x2b\x06\x01\x04\x01\x81\x87\x2e\x0a\x08\x0c\x02\x02"), | |
| 64 }, | 85 }, |
| 65 }, | 86 }, |
| 66 // AddTrust External CA Root | 87 // AddTrust External CA Root |
| 67 // https://addtrustexternalcaroot-ev.comodoca.com | 88 // https://addtrustexternalcaroot-ev.comodoca.com |
| 68 { | 89 { |
| 69 {{0x02, 0xfa, 0xf3, 0xe2, 0x91, 0x43, 0x54, 0x68, 0x60, 0x78, | 90 {{0x02, 0xfa, 0xf3, 0xe2, 0x91, 0x43, 0x54, 0x68, 0x60, 0x78, |
| 70 0x57, 0x69, 0x4d, 0xf5, 0xe4, 0x5b, 0x68, 0x85, 0x18, 0x68}}, | 91 0x57, 0x69, 0x4d, 0xf5, 0xe4, 0x5b, 0x68, 0x85, 0x18, 0x68}}, |
| 71 { | 92 { |
| 72 "1.3.6.1.4.1.6449.1.2.1.5.1", | 93 OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 94 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 73 // This is the Network Solutions EV OID. However, this root | 95 // This is the Network Solutions EV OID. However, this root |
| 74 // cross-certifies NetSol and so we need it here too. | 96 // cross-certifies NetSol and so we need it here too. |
| 75 "1.3.6.1.4.1.782.1.2.1.8.1", | 97 OID("1.3.6.1.4.1.782.1.2.1.8.1", |
| 98 "\x06\x0c\x2b\x06\x01\x04\x01\x86\x0e\x01\x02\x01\x08\x01"), | |
| 76 }, | 99 }, |
| 77 }, | 100 }, |
| 78 // Actalis Authentication Root CA | 101 // Actalis Authentication Root CA |
| 79 // https://ssltest-a.actalis.it:8443 | 102 // https://ssltest-a.actalis.it:8443 |
| 80 { | 103 { |
| 81 {{0xf3, 0x73, 0xb3, 0x87, 0x06, 0x5a, 0x28, 0x84, 0x8a, 0xf2, | 104 {{0xf3, 0x73, 0xb3, 0x87, 0x06, 0x5a, 0x28, 0x84, 0x8a, 0xf2, |
| 82 0xf3, 0x4a, 0xce, 0x19, 0x2b, 0xdd, 0xc7, 0x8e, 0x9c, 0xac}}, | 105 0xf3, 0x4a, 0xce, 0x19, 0x2b, 0xdd, 0xc7, 0x8e, 0x9c, 0xac}}, |
| 83 {"1.3.159.1.17.1", ""}, | 106 {OID("1.3.159.1.17.1", "\x06\x06\x2b\x81\x1f\x01\x11\x01"), |
| 107 OID("", "")}, | |
| 84 }, | 108 }, |
| 85 // AffirmTrust Commercial | 109 // AffirmTrust Commercial |
| 86 // https://commercial.affirmtrust.com/ | 110 // https://commercial.affirmtrust.com/ |
| 87 { | 111 { |
| 88 {{0xf9, 0xb5, 0xb6, 0x32, 0x45, 0x5f, 0x9c, 0xbe, 0xec, 0x57, | 112 {{0xf9, 0xb5, 0xb6, 0x32, 0x45, 0x5f, 0x9c, 0xbe, 0xec, 0x57, |
| 89 0x5f, 0x80, 0xdc, 0xe9, 0x6e, 0x2c, 0xc7, 0xb2, 0x78, 0xb7}}, | 113 0x5f, 0x80, 0xdc, 0xe9, 0x6e, 0x2c, 0xc7, 0xb2, 0x78, 0xb7}}, |
| 90 {"1.3.6.1.4.1.34697.2.1", ""}, | 114 {OID("1.3.6.1.4.1.34697.2.1", |
| 115 "\x06\x0a\x2b\x06\x01\x04\x01\x82\x8f\x09\x02\x01"), | |
| 116 OID("", "")}, | |
| 91 }, | 117 }, |
| 92 // AffirmTrust Networking | 118 // AffirmTrust Networking |
| 93 // https://networking.affirmtrust.com:4431 | 119 // https://networking.affirmtrust.com:4431 |
| 94 { | 120 { |
| 95 {{0x29, 0x36, 0x21, 0x02, 0x8b, 0x20, 0xed, 0x02, 0xf5, 0x66, | 121 {{0x29, 0x36, 0x21, 0x02, 0x8b, 0x20, 0xed, 0x02, 0xf5, 0x66, |
| 96 0xc5, 0x32, 0xd1, 0xd6, 0xed, 0x90, 0x9f, 0x45, 0x00, 0x2f}}, | 122 0xc5, 0x32, 0xd1, 0xd6, 0xed, 0x90, 0x9f, 0x45, 0x00, 0x2f}}, |
| 97 {"1.3.6.1.4.1.34697.2.2", ""}, | 123 {OID("1.3.6.1.4.1.34697.2.2", |
| 124 "\x06\x0a\x2b\x06\x01\x04\x01\x82\x8f\x09\x02\x02"), | |
| 125 OID("", "")}, | |
| 98 }, | 126 }, |
| 99 // AffirmTrust Premium | 127 // AffirmTrust Premium |
| 100 // https://premium.affirmtrust.com:4432/ | 128 // https://premium.affirmtrust.com:4432/ |
| 101 { | 129 { |
| 102 {{0xd8, 0xa6, 0x33, 0x2c, 0xe0, 0x03, 0x6f, 0xb1, 0x85, 0xf6, | 130 {{0xd8, 0xa6, 0x33, 0x2c, 0xe0, 0x03, 0x6f, 0xb1, 0x85, 0xf6, |
| 103 0x63, 0x4f, 0x7d, 0x6a, 0x06, 0x65, 0x26, 0x32, 0x28, 0x27}}, | 131 0x63, 0x4f, 0x7d, 0x6a, 0x06, 0x65, 0x26, 0x32, 0x28, 0x27}}, |
| 104 {"1.3.6.1.4.1.34697.2.3", ""}, | 132 {OID("1.3.6.1.4.1.34697.2.3", |
| 133 "\x06\x0a\x2b\x06\x01\x04\x01\x82\x8f\x09\x02\x03"), | |
| 134 OID("", "")}, | |
| 105 }, | 135 }, |
| 106 // AffirmTrust Premium ECC | 136 // AffirmTrust Premium ECC |
| 107 // https://premiumecc.affirmtrust.com:4433/ | 137 // https://premiumecc.affirmtrust.com:4433/ |
| 108 { | 138 { |
| 109 {{0xb8, 0x23, 0x6b, 0x00, 0x2f, 0x1d, 0x16, 0x86, 0x53, 0x01, | 139 {{0xb8, 0x23, 0x6b, 0x00, 0x2f, 0x1d, 0x16, 0x86, 0x53, 0x01, |
| 110 0x55, 0x6c, 0x11, 0xa4, 0x37, 0xca, 0xeb, 0xff, 0xc3, 0xbb}}, | 140 0x55, 0x6c, 0x11, 0xa4, 0x37, 0xca, 0xeb, 0xff, 0xc3, 0xbb}}, |
| 111 {"1.3.6.1.4.1.34697.2.4", ""}, | 141 {OID("1.3.6.1.4.1.34697.2.4", |
| 142 "\x06\x0a\x2b\x06\x01\x04\x01\x82\x8f\x09\x02\x04"), | |
| 143 OID("", "")}, | |
| 112 }, | 144 }, |
| 113 // Autoridad de Certificacion Firmaprofesional CIF A62634068 | 145 // Autoridad de Certificacion Firmaprofesional CIF A62634068 |
| 114 // https://publifirma.firmaprofesional.com/ | 146 // https://publifirma.firmaprofesional.com/ |
| 115 {{{0xae, 0xc5, 0xfb, 0x3f, 0xc8, 0xe1, 0xbf, 0xc4, 0xe5, 0x4f, | 147 {{{0xae, 0xc5, 0xfb, 0x3f, 0xc8, 0xe1, 0xbf, 0xc4, 0xe5, 0x4f, |
| 116 0x03, 0x07, 0x5a, 0x9a, 0xe8, 0x00, 0xb7, 0xf7, 0xb6, 0xfa}}, | 148 0x03, 0x07, 0x5a, 0x9a, 0xe8, 0x00, 0xb7, 0xf7, 0xb6, 0xfa}}, |
| 117 {"1.3.6.1.4.1.13177.10.1.3.10", ""}}, | 149 {OID("1.3.6.1.4.1.13177.10.1.3.10", |
| 150 "\x06\x0b\x2b\x06\x01\x04\x01\xe6\x79\x0a\x01\x03\x0a"), | |
| 151 OID("", "")}}, | |
| 118 // Baltimore CyberTrust Root | 152 // Baltimore CyberTrust Root |
| 119 // https://secure.omniroot.com/repository/ | 153 // https://secure.omniroot.com/repository/ |
| 120 { | 154 { |
| 121 {{0xd4, 0xde, 0x20, 0xd0, 0x5e, 0x66, 0xfc, 0x53, 0xfe, 0x1a, | 155 {{0xd4, 0xde, 0x20, 0xd0, 0x5e, 0x66, 0xfc, 0x53, 0xfe, 0x1a, |
| 122 0x50, 0x88, 0x2c, 0x78, 0xdb, 0x28, 0x52, 0xca, 0xe4, 0x74}}, | 156 0x50, 0x88, 0x2c, 0x78, 0xdb, 0x28, 0x52, 0xca, 0xe4, 0x74}}, |
| 123 {"1.3.6.1.4.1.6334.1.100.1", ""}, | 157 {OID("1.3.6.1.4.1.6334.1.100.1", |
| 158 "\x06\x0a\x2b\x06\x01\x04\x01\xb1\x3e\x01\x64\x01"), | |
| 159 OID("", "")}, | |
| 124 }, | 160 }, |
| 125 // Buypass Class 3 CA 1 | 161 // Buypass Class 3 CA 1 |
| 126 // https://valid.evident.ca13.ssl.buypass.no/ | 162 // https://valid.evident.ca13.ssl.buypass.no/ |
| 127 { | 163 { |
| 128 {{0x61, 0x57, 0x3A, 0x11, 0xDF, 0x0E, 0xD8, 0x7E, 0xD5, 0x92, | 164 {{0x61, 0x57, 0x3A, 0x11, 0xDF, 0x0E, 0xD8, 0x7E, 0xD5, 0x92, |
| 129 0x65, 0x22, 0xEA, 0xD0, 0x56, 0xD7, 0x44, 0xB3, 0x23, 0x71}}, | 165 0x65, 0x22, 0xEA, 0xD0, 0x56, 0xD7, 0x44, 0xB3, 0x23, 0x71}}, |
| 130 {"2.16.578.1.26.1.3.3", ""}, | 166 {OID("2.16.578.1.26.1.3.3", "\x06\x08\x60\x84\x42\x01\x1a\x01\x03\x03"), |
| 167 OID("", "")}, | |
| 131 }, | 168 }, |
| 132 // Buypass Class 3 Root CA | 169 // Buypass Class 3 Root CA |
| 133 // https://valid.evident.ca23.ssl.buypass.no/ | 170 // https://valid.evident.ca23.ssl.buypass.no/ |
| 134 { | 171 { |
| 135 {{0xDA, 0xFA, 0xF7, 0xFA, 0x66, 0x84, 0xEC, 0x06, 0x8F, 0x14, | 172 {{0xDA, 0xFA, 0xF7, 0xFA, 0x66, 0x84, 0xEC, 0x06, 0x8F, 0x14, |
| 136 0x50, 0xBD, 0xC7, 0xC2, 0x81, 0xA5, 0xBC, 0xA9, 0x64, 0x57}}, | 173 0x50, 0xBD, 0xC7, 0xC2, 0x81, 0xA5, 0xBC, 0xA9, 0x64, 0x57}}, |
| 137 {"2.16.578.1.26.1.3.3", ""}, | 174 {OID("2.16.578.1.26.1.3.3", "\x06\x08\x60\x84\x42\x01\x1a\x01\x03\x03"), |
| 175 OID("", "")}, | |
| 138 }, | 176 }, |
| 139 // CA 沃通根证书 | 177 // CA 沃通根证书 |
| 140 // https://root2evtest.wosign.com/ | 178 // https://root2evtest.wosign.com/ |
| 141 { | 179 { |
| 142 {{0x16, 0x32, 0x47, 0x8d, 0x89, 0xf9, 0x21, 0x3a, 0x92, 0x00, | 180 {{0x16, 0x32, 0x47, 0x8d, 0x89, 0xf9, 0x21, 0x3a, 0x92, 0x00, |
| 143 0x85, 0x63, 0xf5, 0xa4, 0xa7, 0xd3, 0x12, 0x40, 0x8a, 0xd6}}, | 181 0x85, 0x63, 0xf5, 0xa4, 0xa7, 0xd3, 0x12, 0x40, 0x8a, 0xd6}}, |
| 144 {"1.3.6.1.4.1.36305.2", ""}, | 182 {OID("1.3.6.1.4.1.36305.2", |
| 183 "\x06\x09\x2b\x06\x01\x04\x01\x82\x9b\x51\x02"), | |
| 184 OID("", "")}, | |
| 145 }, | 185 }, |
| 146 // Certification Authority of WoSign | 186 // Certification Authority of WoSign |
| 147 // https://root1evtest.wosign.com/ | 187 // https://root1evtest.wosign.com/ |
| 148 { | 188 { |
| 149 {{0xb9, 0x42, 0x94, 0xbf, 0x91, 0xea, 0x8f, 0xb6, 0x4b, 0xe6, | 189 {{0xb9, 0x42, 0x94, 0xbf, 0x91, 0xea, 0x8f, 0xb6, 0x4b, 0xe6, |
| 150 0x10, 0x97, 0xc7, 0xfb, 0x00, 0x13, 0x59, 0xb6, 0x76, 0xcb}}, | 190 0x10, 0x97, 0xc7, 0xfb, 0x00, 0x13, 0x59, 0xb6, 0x76, 0xcb}}, |
| 151 {"1.3.6.1.4.1.36305.2", ""}, | 191 {OID("1.3.6.1.4.1.36305.2", |
| 192 "\x06\x09\x2b\x06\x01\x04\x01\x82\x9b\x51\x02"), | |
| 193 OID("", "")}, | |
| 152 }, | 194 }, |
| 153 // CertPlus Class 2 Primary CA (KEYNECTIS) | 195 // CertPlus Class 2 Primary CA (KEYNECTIS) |
| 154 // https://www.keynectis.com/ | 196 // https://www.keynectis.com/ |
| 155 { | 197 { |
| 156 {{0x74, 0x20, 0x74, 0x41, 0x72, 0x9c, 0xdd, 0x92, 0xec, 0x79, | 198 {{0x74, 0x20, 0x74, 0x41, 0x72, 0x9c, 0xdd, 0x92, 0xec, 0x79, |
| 157 0x31, 0xd8, 0x23, 0x10, 0x8d, 0xc2, 0x81, 0x92, 0xe2, 0xbb}}, | 199 0x31, 0xd8, 0x23, 0x10, 0x8d, 0xc2, 0x81, 0x92, 0xe2, 0xbb}}, |
| 158 {"1.3.6.1.4.1.22234.2.5.2.3.1", ""}, | 200 {OID("1.3.6.1.4.1.22234.2.5.2.3.1", |
| 201 "\x06\x0d\x2b\x06\x01\x04\x01\x81\xad\x5a\x02\x05\x02\x03\x01"), | |
| 202 OID("", "")}, | |
| 159 }, | 203 }, |
| 160 // Certum Trusted Network CA | 204 // Certum Trusted Network CA |
| 161 // https://juice.certum.pl/ | 205 // https://juice.certum.pl/ |
| 162 { | 206 { |
| 163 {{0x07, 0xe0, 0x32, 0xe0, 0x20, 0xb7, 0x2c, 0x3f, 0x19, 0x2f, | 207 {{0x07, 0xe0, 0x32, 0xe0, 0x20, 0xb7, 0x2c, 0x3f, 0x19, 0x2f, |
| 164 0x06, 0x28, 0xa2, 0x59, 0x3a, 0x19, 0xa7, 0x0f, 0x06, 0x9e}}, | 208 0x06, 0x28, 0xa2, 0x59, 0x3a, 0x19, 0xa7, 0x0f, 0x06, 0x9e}}, |
| 165 {"1.2.616.1.113527.2.5.1.1", ""}, | 209 {OID("1.2.616.1.113527.2.5.1.1", |
| 210 "\x06\x0b\x2a\x84\x68\x01\x86\xf6\x77\x02\x05\x01\x01"), | |
| 211 OID("", "")}, | |
| 166 }, | 212 }, |
| 167 // China Internet Network Information Center EV Certificates Root | 213 // China Internet Network Information Center EV Certificates Root |
| 168 // https://evdemo.cnnic.cn/ | 214 // https://evdemo.cnnic.cn/ |
| 169 { | 215 { |
| 170 {{0x4F, 0x99, 0xAA, 0x93, 0xFB, 0x2B, 0xD1, 0x37, 0x26, 0xA1, | 216 {{0x4F, 0x99, 0xAA, 0x93, 0xFB, 0x2B, 0xD1, 0x37, 0x26, 0xA1, |
| 171 0x99, 0x4A, 0xCE, 0x7F, 0xF0, 0x05, 0xF2, 0x93, 0x5D, 0x1E}}, | 217 0x99, 0x4A, 0xCE, 0x7F, 0xF0, 0x05, 0xF2, 0x93, 0x5D, 0x1E}}, |
| 172 {"1.3.6.1.4.1.29836.1.10", ""}, | 218 {OID("1.3.6.1.4.1.29836.1.10", |
| 219 "\x06\x0a\x2b\x06\x01\x04\x01\x81\xe9\x0c\x01\x0a"), | |
| 220 OID("", "")}, | |
| 173 }, | 221 }, |
| 174 // COMODO Certification Authority | 222 // COMODO Certification Authority |
| 175 // https://secure.comodo.com/ | 223 // https://secure.comodo.com/ |
| 176 { | 224 { |
| 177 {{0x66, 0x31, 0xbf, 0x9e, 0xf7, 0x4f, 0x9e, 0xb6, 0xc9, 0xd5, | 225 {{0x66, 0x31, 0xbf, 0x9e, 0xf7, 0x4f, 0x9e, 0xb6, 0xc9, 0xd5, |
| 178 0xa6, 0x0c, 0xba, 0x6a, 0xbe, 0xd1, 0xf7, 0xbd, 0xef, 0x7b}}, | 226 0xa6, 0x0c, 0xba, 0x6a, 0xbe, 0xd1, 0xf7, 0xbd, 0xef, 0x7b}}, |
| 179 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 227 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 228 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 229 OID("", "")}, | |
| 180 }, | 230 }, |
| 181 // COMODO Certification Authority (reissued certificate with NotBefore of | 231 // COMODO Certification Authority (reissued certificate with NotBefore of |
| 182 // Jan 1 00:00:00 2011 GMT) | 232 // Jan 1 00:00:00 2011 GMT) |
| 183 // https://secure.comodo.com/ | 233 // https://secure.comodo.com/ |
| 184 { | 234 { |
| 185 {{0xee, 0x86, 0x93, 0x87, 0xff, 0xfd, 0x83, 0x49, 0xab, 0x5a, | 235 {{0xee, 0x86, 0x93, 0x87, 0xff, 0xfd, 0x83, 0x49, 0xab, 0x5a, |
| 186 0xd1, 0x43, 0x22, 0x58, 0x87, 0x89, 0xa4, 0x57, 0xb0, 0x12}}, | 236 0xd1, 0x43, 0x22, 0x58, 0x87, 0x89, 0xa4, 0x57, 0xb0, 0x12}}, |
| 187 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 237 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 238 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 239 OID("", "")}, | |
| 188 }, | 240 }, |
| 189 // COMODO ECC Certification Authority | 241 // COMODO ECC Certification Authority |
| 190 // https://comodoecccertificationauthority-ev.comodoca.com/ | 242 // https://comodoecccertificationauthority-ev.comodoca.com/ |
| 191 { | 243 { |
| 192 {{0x9f, 0x74, 0x4e, 0x9f, 0x2b, 0x4d, 0xba, 0xec, 0x0f, 0x31, | 244 {{0x9f, 0x74, 0x4e, 0x9f, 0x2b, 0x4d, 0xba, 0xec, 0x0f, 0x31, |
| 193 0x2c, 0x50, 0xb6, 0x56, 0x3b, 0x8e, 0x2d, 0x93, 0xc3, 0x11}}, | 245 0x2c, 0x50, 0xb6, 0x56, 0x3b, 0x8e, 0x2d, 0x93, 0xc3, 0x11}}, |
| 194 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 246 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 247 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 248 OID("", "")}, | |
| 195 }, | 249 }, |
| 196 // COMODO RSA Certification Authority | 250 // COMODO RSA Certification Authority |
| 197 // https://comodorsacertificationauthority-ev.comodoca.com/ | 251 // https://comodorsacertificationauthority-ev.comodoca.com/ |
| 198 { | 252 { |
| 199 {{0xaf, 0xe5, 0xd2, 0x44, 0xa8, 0xd1, 0x19, 0x42, 0x30, 0xff, | 253 {{0xaf, 0xe5, 0xd2, 0x44, 0xa8, 0xd1, 0x19, 0x42, 0x30, 0xff, |
| 200 0x47, 0x9f, 0xe2, 0xf8, 0x97, 0xbb, 0xcd, 0x7a, 0x8c, 0xb4}}, | 254 0x47, 0x9f, 0xe2, 0xf8, 0x97, 0xbb, 0xcd, 0x7a, 0x8c, 0xb4}}, |
| 201 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 255 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 256 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 257 OID("", "")}, | |
| 202 }, | 258 }, |
| 203 // Cybertrust Global Root | 259 // Cybertrust Global Root |
| 204 // https://evup.cybertrust.ne.jp/ctj-ev-upgrader/evseal.gif | 260 // https://evup.cybertrust.ne.jp/ctj-ev-upgrader/evseal.gif |
| 205 { | 261 { |
| 206 {{0x5f, 0x43, 0xe5, 0xb1, 0xbf, 0xf8, 0x78, 0x8c, 0xac, 0x1c, | 262 {{0x5f, 0x43, 0xe5, 0xb1, 0xbf, 0xf8, 0x78, 0x8c, 0xac, 0x1c, |
| 207 0xc7, 0xca, 0x4a, 0x9a, 0xc6, 0x22, 0x2b, 0xcc, 0x34, 0xc6}}, | 263 0xc7, 0xca, 0x4a, 0x9a, 0xc6, 0x22, 0x2b, 0xcc, 0x34, 0xc6}}, |
| 208 {"1.3.6.1.4.1.6334.1.100.1", ""}, | 264 {OID("1.3.6.1.4.1.6334.1.100.1", |
| 265 "\x06\x0a\x2b\x06\x01\x04\x01\xb1\x3e\x01\x64\x01"), | |
| 266 OID("", "")}, | |
| 209 }, | 267 }, |
| 210 // DigiCert High Assurance EV Root CA | 268 // DigiCert High Assurance EV Root CA |
| 211 // https://www.digicert.com | 269 // https://www.digicert.com |
| 212 { | 270 { |
| 213 {{0x5f, 0xb7, 0xee, 0x06, 0x33, 0xe2, 0x59, 0xdb, 0xad, 0x0c, | 271 {{0x5f, 0xb7, 0xee, 0x06, 0x33, 0xe2, 0x59, 0xdb, 0xad, 0x0c, |
| 214 0x4c, 0x9a, 0xe6, 0xd3, 0x8f, 0x1a, 0x61, 0xc7, 0xdc, 0x25}}, | 272 0x4c, 0x9a, 0xe6, 0xd3, 0x8f, 0x1a, 0x61, 0xc7, 0xdc, 0x25}}, |
| 215 {"2.16.840.1.114412.2.1", ""}, | 273 {OID("2.16.840.1.114412.2.1", |
| 274 "\x06\x09\x60\x86\x48\x01\x86\xfd\x6c\x02\x01"), | |
| 275 OID("", "")}, | |
| 216 }, | 276 }, |
| 217 // D-TRUST Root Class 3 CA 2 EV 2009 | 277 // D-TRUST Root Class 3 CA 2 EV 2009 |
| 218 // https://certdemo-ev-valid.ssl.d-trust.net/ | 278 // https://certdemo-ev-valid.ssl.d-trust.net/ |
| 219 { | 279 { |
| 220 {{0x96, 0xc9, 0x1b, 0x0b, 0x95, 0xb4, 0x10, 0x98, 0x42, 0xfa, | 280 {{0x96, 0xc9, 0x1b, 0x0b, 0x95, 0xb4, 0x10, 0x98, 0x42, 0xfa, |
| 221 0xd0, 0xd8, 0x22, 0x79, 0xfe, 0x60, 0xfa, 0xb9, 0x16, 0x83}}, | 281 0xd0, 0xd8, 0x22, 0x79, 0xfe, 0x60, 0xfa, 0xb9, 0x16, 0x83}}, |
| 222 {"1.3.6.1.4.1.4788.2.202.1", ""}, | 282 {OID("1.3.6.1.4.1.4788.2.202.1", |
| 283 "\x06\x0b\x2b\x06\x01\x04\x01\xa5\x34\x02\x81\x4a\x01"), | |
| 284 OID("", "")}, | |
| 223 }, | 285 }, |
| 224 // Entrust.net Secure Server Certification Authority | 286 // Entrust.net Secure Server Certification Authority |
| 225 // https://www.entrust.net/ | 287 // https://www.entrust.net/ |
| 226 { | 288 { |
| 227 {{0x99, 0xa6, 0x9b, 0xe6, 0x1a, 0xfe, 0x88, 0x6b, 0x4d, 0x2b, | 289 {{0x99, 0xa6, 0x9b, 0xe6, 0x1a, 0xfe, 0x88, 0x6b, 0x4d, 0x2b, |
| 228 0x82, 0x00, 0x7c, 0xb8, 0x54, 0xfc, 0x31, 0x7e, 0x15, 0x39}}, | 290 0x82, 0x00, 0x7c, 0xb8, 0x54, 0xfc, 0x31, 0x7e, 0x15, 0x39}}, |
| 229 {"2.16.840.1.114028.10.1.2", ""}, | 291 {OID("2.16.840.1.114028.10.1.2", |
| 292 "\x06\x0a\x60\x86\x48\x01\x86\xfa\x6c\x0a\x01\x02"), | |
| 293 OID("", "")}, | |
| 230 }, | 294 }, |
| 231 // Entrust Root Certification Authority | 295 // Entrust Root Certification Authority |
| 232 // https://www.entrust.net/ | 296 // https://www.entrust.net/ |
| 233 { | 297 { |
| 234 {{0xb3, 0x1e, 0xb1, 0xb7, 0x40, 0xe3, 0x6c, 0x84, 0x02, 0xda, | 298 {{0xb3, 0x1e, 0xb1, 0xb7, 0x40, 0xe3, 0x6c, 0x84, 0x02, 0xda, |
| 235 0xdc, 0x37, 0xd4, 0x4d, 0xf5, 0xd4, 0x67, 0x49, 0x52, 0xf9}}, | 299 0xdc, 0x37, 0xd4, 0x4d, 0xf5, 0xd4, 0x67, 0x49, 0x52, 0xf9}}, |
| 236 {"2.16.840.1.114028.10.1.2", ""}, | 300 {OID("2.16.840.1.114028.10.1.2", |
| 301 "\x06\x0a\x60\x86\x48\x01\x86\xfa\x6c\x0a\x01\x02"), | |
| 302 OID("", "")}, | |
| 237 }, | 303 }, |
| 238 // Equifax Secure Certificate Authority (GeoTrust) | 304 // Equifax Secure Certificate Authority (GeoTrust) |
| 239 // https://www.geotrust.com/ | 305 // https://www.geotrust.com/ |
| 240 { | 306 { |
| 241 {{0xd2, 0x32, 0x09, 0xad, 0x23, 0xd3, 0x14, 0x23, 0x21, 0x74, | 307 {{0xd2, 0x32, 0x09, 0xad, 0x23, 0xd3, 0x14, 0x23, 0x21, 0x74, |
| 242 0xe4, 0x0d, 0x7f, 0x9d, 0x62, 0x13, 0x97, 0x86, 0x63, 0x3a}}, | 308 0xe4, 0x0d, 0x7f, 0x9d, 0x62, 0x13, 0x97, 0x86, 0x63, 0x3a}}, |
| 243 {"1.3.6.1.4.1.14370.1.6", ""}, | 309 {OID("1.3.6.1.4.1.14370.1.6", |
| 310 "\x06\x09\x2b\x06\x01\x04\x01\xf0\x22\x01\x06"), | |
| 311 OID("", "")}, | |
| 244 }, | 312 }, |
| 245 // E-Tugra Certification Authority | 313 // E-Tugra Certification Authority |
| 246 // https://sslev.e-tugra.com.tr | 314 // https://sslev.e-tugra.com.tr |
| 247 { | 315 { |
| 248 {{0x51, 0xC6, 0xE7, 0x08, 0x49, 0x06, 0x6E, 0xF3, 0x92, 0xD4, | 316 {{0x51, 0xC6, 0xE7, 0x08, 0x49, 0x06, 0x6E, 0xF3, 0x92, 0xD4, |
| 249 0x5C, 0xA0, 0x0D, 0x6D, 0xA3, 0x62, 0x8F, 0xC3, 0x52, 0x39}}, | 317 0x5C, 0xA0, 0x0D, 0x6D, 0xA3, 0x62, 0x8F, 0xC3, 0x52, 0x39}}, |
| 250 {"2.16.792.3.0.4.1.1.4", ""}, | 318 {OID("2.16.792.3.0.4.1.1.4", |
| 319 "\x06\x09\x60\x86\x18\x03\x00\x04\x01\x01\x04"), | |
| 320 OID("", "")}, | |
| 251 }, | 321 }, |
| 252 // GeoTrust Primary Certification Authority | 322 // GeoTrust Primary Certification Authority |
| 253 // https://www.geotrust.com/ | 323 // https://www.geotrust.com/ |
| 254 { | 324 { |
| 255 {{0x32, 0x3c, 0x11, 0x8e, 0x1b, 0xf7, 0xb8, 0xb6, 0x52, 0x54, | 325 {{0x32, 0x3c, 0x11, 0x8e, 0x1b, 0xf7, 0xb8, 0xb6, 0x52, 0x54, |
| 256 0xe2, 0xe2, 0x10, 0x0d, 0xd6, 0x02, 0x90, 0x37, 0xf0, 0x96}}, | 326 0xe2, 0xe2, 0x10, 0x0d, 0xd6, 0x02, 0x90, 0x37, 0xf0, 0x96}}, |
| 257 {"1.3.6.1.4.1.14370.1.6", ""}, | 327 {OID("1.3.6.1.4.1.14370.1.6", |
| 328 "\x06\x09\x2b\x06\x01\x04\x01\xf0\x22\x01\x06"), | |
| 329 OID("", "")}, | |
| 258 }, | 330 }, |
| 259 // GeoTrust Primary Certification Authority - G2 | 331 // GeoTrust Primary Certification Authority - G2 |
| 260 { | 332 { |
| 261 {{0x8d, 0x17, 0x84, 0xd5, 0x37, 0xf3, 0x03, 0x7d, 0xec, 0x70, | 333 {{0x8d, 0x17, 0x84, 0xd5, 0x37, 0xf3, 0x03, 0x7d, 0xec, 0x70, |
| 262 0xfe, 0x57, 0x8b, 0x51, 0x9a, 0x99, 0xe6, 0x10, 0xd7, 0xb0}}, | 334 0xfe, 0x57, 0x8b, 0x51, 0x9a, 0x99, 0xe6, 0x10, 0xd7, 0xb0}}, |
| 263 {"1.3.6.1.4.1.14370.1.6", ""}, | 335 {OID("1.3.6.1.4.1.14370.1.6", |
| 336 "\x06\x09\x2b\x06\x01\x04\x01\xf0\x22\x01\x06"), | |
| 337 OID("", "")}, | |
| 264 }, | 338 }, |
| 265 // GeoTrust Primary Certification Authority - G3 | 339 // GeoTrust Primary Certification Authority - G3 |
| 266 { | 340 { |
| 267 {{0x03, 0x9e, 0xed, 0xb8, 0x0b, 0xe7, 0xa0, 0x3c, 0x69, 0x53, | 341 {{0x03, 0x9e, 0xed, 0xb8, 0x0b, 0xe7, 0xa0, 0x3c, 0x69, 0x53, |
| 268 0x89, 0x3b, 0x20, 0xd2, 0xd9, 0x32, 0x3a, 0x4c, 0x2a, 0xfd}}, | 342 0x89, 0x3b, 0x20, 0xd2, 0xd9, 0x32, 0x3a, 0x4c, 0x2a, 0xfd}}, |
| 269 {"1.3.6.1.4.1.14370.1.6", ""}, | 343 {OID("1.3.6.1.4.1.14370.1.6", |
| 344 "\x06\x09\x2b\x06\x01\x04\x01\xf0\x22\x01\x06"), | |
| 345 OID("", "")}, | |
| 270 }, | 346 }, |
| 271 // GlobalSign Root CA - R2 | 347 // GlobalSign Root CA - R2 |
| 272 // https://www.globalsign.com/ | 348 // https://www.globalsign.com/ |
| 273 { | 349 { |
| 274 {{0x75, 0xe0, 0xab, 0xb6, 0x13, 0x85, 0x12, 0x27, 0x1c, 0x04, | 350 {{0x75, 0xe0, 0xab, 0xb6, 0x13, 0x85, 0x12, 0x27, 0x1c, 0x04, |
| 275 0xf8, 0x5f, 0xdd, 0xde, 0x38, 0xe4, 0xb7, 0x24, 0x2e, 0xfe}}, | 351 0xf8, 0x5f, 0xdd, 0xde, 0x38, 0xe4, 0xb7, 0x24, 0x2e, 0xfe}}, |
| 276 {"1.3.6.1.4.1.4146.1.1", ""}, | 352 {OID("1.3.6.1.4.1.4146.1.1", |
| 353 "\x06\x09\x2b\x06\x01\x04\x01\xa0\x32\x01\x01"), | |
| 354 OID("", "")}, | |
| 277 }, | 355 }, |
| 278 // GlobalSign Root CA | 356 // GlobalSign Root CA |
| 279 { | 357 { |
| 280 {{0xb1, 0xbc, 0x96, 0x8b, 0xd4, 0xf4, 0x9d, 0x62, 0x2a, 0xa8, | 358 {{0xb1, 0xbc, 0x96, 0x8b, 0xd4, 0xf4, 0x9d, 0x62, 0x2a, 0xa8, |
| 281 0x9a, 0x81, 0xf2, 0x15, 0x01, 0x52, 0xa4, 0x1d, 0x82, 0x9c}}, | 359 0x9a, 0x81, 0xf2, 0x15, 0x01, 0x52, 0xa4, 0x1d, 0x82, 0x9c}}, |
| 282 {"1.3.6.1.4.1.4146.1.1", ""}, | 360 {OID("1.3.6.1.4.1.4146.1.1", |
| 361 "\x06\x09\x2b\x06\x01\x04\x01\xa0\x32\x01\x01"), | |
| 362 OID("", "")}, | |
| 283 }, | 363 }, |
| 284 // GlobalSign Root CA - R3 | 364 // GlobalSign Root CA - R3 |
| 285 // https://2029.globalsign.com/ | 365 // https://2029.globalsign.com/ |
| 286 { | 366 { |
| 287 {{0xd6, 0x9b, 0x56, 0x11, 0x48, 0xf0, 0x1c, 0x77, 0xc5, 0x45, | 367 {{0xd6, 0x9b, 0x56, 0x11, 0x48, 0xf0, 0x1c, 0x77, 0xc5, 0x45, |
| 288 0x78, 0xc1, 0x09, 0x26, 0xdf, 0x5b, 0x85, 0x69, 0x76, 0xad}}, | 368 0x78, 0xc1, 0x09, 0x26, 0xdf, 0x5b, 0x85, 0x69, 0x76, 0xad}}, |
| 289 {"1.3.6.1.4.1.4146.1.1", ""}, | 369 {OID("1.3.6.1.4.1.4146.1.1", |
| 370 "\x06\x09\x2b\x06\x01\x04\x01\xa0\x32\x01\x01"), | |
| 371 OID("", "")}, | |
| 290 }, | 372 }, |
| 291 // GlobalSign ECC Root CA - R4 | 373 // GlobalSign ECC Root CA - R4 |
| 292 // https://2038r4.globalsign.com | 374 // https://2038r4.globalsign.com |
| 293 { | 375 { |
| 294 {{0x69, 0x69, 0x56, 0x2e, 0x40, 0x80, 0xf4, 0x24, 0xa1, 0xe7, | 376 {{0x69, 0x69, 0x56, 0x2e, 0x40, 0x80, 0xf4, 0x24, 0xa1, 0xe7, |
| 295 0x19, 0x9f, 0x14, 0xba, 0xf3, 0xee, 0x58, 0xab, 0x6a, 0xbb}}, | 377 0x19, 0x9f, 0x14, 0xba, 0xf3, 0xee, 0x58, 0xab, 0x6a, 0xbb}}, |
| 296 {"1.3.6.1.4.1.4146.1.1", ""}, | 378 {OID("1.3.6.1.4.1.4146.1.1", |
| 379 "\x06\x09\x2b\x06\x01\x04\x01\xa0\x32\x01\x01"), | |
| 380 OID("", "")}, | |
| 297 }, | 381 }, |
| 298 // GlobalSign ECC Root CA - R5 | 382 // GlobalSign ECC Root CA - R5 |
| 299 // https://2038r5.globalsign.com/ | 383 // https://2038r5.globalsign.com/ |
| 300 {{{0x1f, 0x24, 0xc6, 0x30, 0xcd, 0xa4, 0x18, 0xef, 0x20, 0x69, | 384 {{{0x1f, 0x24, 0xc6, 0x30, 0xcd, 0xa4, 0x18, 0xef, 0x20, 0x69, |
| 301 0xff, 0xad, 0x4f, 0xdd, 0x5f, 0x46, 0x3a, 0x1b, 0x69, 0xaa}}, | 385 0xff, 0xad, 0x4f, 0xdd, 0x5f, 0x46, 0x3a, 0x1b, 0x69, 0xaa}}, |
| 302 {"1.3.6.1.4.1.4146.1.1", ""}}, | 386 {OID("1.3.6.1.4.1.4146.1.1", |
| 387 "\x06\x09\x2b\x06\x01\x04\x01\xa0\x32\x01\x01"), | |
| 388 OID("", "")}}, | |
| 303 // Go Daddy Class 2 Certification Authority | 389 // Go Daddy Class 2 Certification Authority |
| 304 // https://www.godaddy.com/ | 390 // https://www.godaddy.com/ |
| 305 { | 391 { |
| 306 {{0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, | 392 {{0x27, 0x96, 0xba, 0xe6, 0x3f, 0x18, 0x01, 0xe2, 0x77, 0x26, |
| 307 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4}}, | 393 0x1b, 0xa0, 0xd7, 0x77, 0x70, 0x02, 0x8f, 0x20, 0xee, 0xe4}}, |
| 308 {"2.16.840.1.114413.1.7.23.3", ""}, | 394 {OID("2.16.840.1.114413.1.7.23.3", |
| 395 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6d\x01\x07\x17\x03"), | |
| 396 OID("", "")}, | |
| 309 }, | 397 }, |
| 310 // Go Daddy Root Certificate Authority - G2 | 398 // Go Daddy Root Certificate Authority - G2 |
| 311 // https://valid.gdig2.catest.godaddy.com/ | 399 // https://valid.gdig2.catest.godaddy.com/ |
| 312 { | 400 { |
| 313 {{0x47, 0xbe, 0xab, 0xc9, 0x22, 0xea, 0xe8, 0x0e, 0x78, 0x78, | 401 {{0x47, 0xbe, 0xab, 0xc9, 0x22, 0xea, 0xe8, 0x0e, 0x78, 0x78, |
| 314 0x34, 0x62, 0xa7, 0x9f, 0x45, 0xc2, 0x54, 0xfd, 0xe6, 0x8b}}, | 402 0x34, 0x62, 0xa7, 0x9f, 0x45, 0xc2, 0x54, 0xfd, 0xe6, 0x8b}}, |
| 315 {"2.16.840.1.114413.1.7.23.3", ""}, | 403 {OID("2.16.840.1.114413.1.7.23.3", |
| 404 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6d\x01\x07\x17\x03"), | |
| 405 OID("", "")}, | |
| 316 }, | 406 }, |
| 317 // GTE CyberTrust Global Root | 407 // GTE CyberTrust Global Root |
| 318 // https://www.cybertrust.ne.jp/ | 408 // https://www.cybertrust.ne.jp/ |
| 319 { | 409 { |
| 320 {{0x97, 0x81, 0x79, 0x50, 0xd8, 0x1c, 0x96, 0x70, 0xcc, 0x34, | 410 {{0x97, 0x81, 0x79, 0x50, 0xd8, 0x1c, 0x96, 0x70, 0xcc, 0x34, |
| 321 0xd8, 0x09, 0xcf, 0x79, 0x44, 0x31, 0x36, 0x7e, 0xf4, 0x74}}, | 411 0xd8, 0x09, 0xcf, 0x79, 0x44, 0x31, 0x36, 0x7e, 0xf4, 0x74}}, |
| 322 {"1.3.6.1.4.1.6334.1.100.1", ""}, | 412 {OID("1.3.6.1.4.1.6334.1.100.1", |
| 413 "\x06\x0a\x2b\x06\x01\x04\x01\xb1\x3e\x01\x64\x01"), | |
| 414 OID("", "")}, | |
| 323 }, | 415 }, |
| 324 // Izenpe.com - SHA256 root | 416 // Izenpe.com - SHA256 root |
| 325 // The first OID is for businesses and the second for government entities. | 417 // The first OID is for businesses and the second for government entities. |
| 326 // These are the test sites, respectively: | 418 // These are the test sites, respectively: |
| 327 // https://servicios.izenpe.com | 419 // https://servicios.izenpe.com |
| 328 // https://servicios1.izenpe.com | 420 // https://servicios1.izenpe.com |
| 329 { | 421 { |
| 330 {{0x2f, 0x78, 0x3d, 0x25, 0x52, 0x18, 0xa7, 0x4a, 0x65, 0x39, | 422 {{0x2f, 0x78, 0x3d, 0x25, 0x52, 0x18, 0xa7, 0x4a, 0x65, 0x39, |
| 331 0x71, 0xb5, 0x2c, 0xa2, 0x9c, 0x45, 0x15, 0x6f, 0xe9, 0x19}}, | 423 0x71, 0xb5, 0x2c, 0xa2, 0x9c, 0x45, 0x15, 0x6f, 0xe9, 0x19}}, |
| 332 {"1.3.6.1.4.1.14777.6.1.1", "1.3.6.1.4.1.14777.6.1.2"}, | 424 {OID("1.3.6.1.4.1.14777.6.1.1", |
| 425 "\x06\x0a\x2b\x06\x01\x04\x01\xf3\x39\x06\x01\x01"), | |
| 426 OID("1.3.6.1.4.1.14777.6.1.2", | |
| 427 "\x06\x0a\x2b\x06\x01\x04\x01\xf3\x39\x06\x01\x02")}, | |
| 333 }, | 428 }, |
| 334 // Izenpe.com - SHA1 root | 429 // Izenpe.com - SHA1 root |
| 335 // Windows XP finds this, SHA1, root instead. The policy OIDs are the same | 430 // Windows XP finds this, SHA1, root instead. The policy OIDs are the same |
| 336 // as for the SHA256 root, above. | 431 // as for the SHA256 root, above. |
| 337 { | 432 { |
| 338 {{0x30, 0x77, 0x9e, 0x93, 0x15, 0x02, 0x2e, 0x94, 0x85, 0x6a, | 433 {{0x30, 0x77, 0x9e, 0x93, 0x15, 0x02, 0x2e, 0x94, 0x85, 0x6a, |
| 339 0x3f, 0xf8, 0xbc, 0xf8, 0x15, 0xb0, 0x82, 0xf9, 0xae, 0xfd}}, | 434 0x3f, 0xf8, 0xbc, 0xf8, 0x15, 0xb0, 0x82, 0xf9, 0xae, 0xfd}}, |
| 340 {"1.3.6.1.4.1.14777.6.1.1", "1.3.6.1.4.1.14777.6.1.2"}, | 435 {OID("1.3.6.1.4.1.14777.6.1.1", |
| 436 "\x06\x0a\x2b\x06\x01\x04\x01\xf3\x39\x06\x01\x01"), | |
| 437 OID("1.3.6.1.4.1.14777.6.1.2", | |
| 438 "\x06\x0a\x2b\x06\x01\x04\x01\xf3\x39\x06\x01\x02")}, | |
| 341 }, | 439 }, |
| 342 // Network Solutions Certificate Authority | 440 // Network Solutions Certificate Authority |
| 343 // https://www.networksolutions.com/website-packages/index.jsp | 441 // https://www.networksolutions.com/website-packages/index.jsp |
| 344 { | 442 { |
| 345 {{0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, | 443 {{0x74, 0xf8, 0xa3, 0xc3, 0xef, 0xe7, 0xb3, 0x90, 0x06, 0x4b, |
| 346 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce}}, | 444 0x83, 0x90, 0x3c, 0x21, 0x64, 0x60, 0x20, 0xe5, 0xdf, 0xce}}, |
| 347 {"1.3.6.1.4.1.782.1.2.1.8.1", ""}, | 445 {OID("1.3.6.1.4.1.782.1.2.1.8.1", |
| 446 "\x06\x0c\x2b\x06\x01\x04\x01\x86\x0e\x01\x02\x01\x08\x01"), | |
| 447 OID("", "")}, | |
| 348 }, | 448 }, |
| 349 // Network Solutions Certificate Authority (reissued certificate with | 449 // Network Solutions Certificate Authority (reissued certificate with |
| 350 // NotBefore of Jan 1 00:00:00 2011 GMT). | 450 // NotBefore of Jan 1 00:00:00 2011 GMT). |
| 351 // https://www.networksolutions.com/website-packages/index.jsp | 451 // https://www.networksolutions.com/website-packages/index.jsp |
| 352 { | 452 { |
| 353 {{0x71, 0x89, 0x9a, 0x67, 0xbf, 0x33, 0xaf, 0x31, 0xbe, 0xfd, | 453 {{0x71, 0x89, 0x9a, 0x67, 0xbf, 0x33, 0xaf, 0x31, 0xbe, 0xfd, |
| 354 0xc0, 0x71, 0xf8, 0xf7, 0x33, 0xb1, 0x83, 0x85, 0x63, 0x32}}, | 454 0xc0, 0x71, 0xf8, 0xf7, 0x33, 0xb1, 0x83, 0x85, 0x63, 0x32}}, |
| 355 {"1.3.6.1.4.1.782.1.2.1.8.1", ""}, | 455 {OID("1.3.6.1.4.1.782.1.2.1.8.1", |
| 456 "\x06\x0c\x2b\x06\x01\x04\x01\x86\x0e\x01\x02\x01\x08\x01"), | |
| 457 OID("", "")}, | |
| 356 }, | 458 }, |
| 357 // QuoVadis Root CA 2 | 459 // QuoVadis Root CA 2 |
| 358 // https://www.quovadis.bm/ | 460 // https://www.quovadis.bm/ |
| 359 { | 461 { |
| 360 {{0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, | 462 {{0xca, 0x3a, 0xfb, 0xcf, 0x12, 0x40, 0x36, 0x4b, 0x44, 0xb2, |
| 361 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7}}, | 463 0x16, 0x20, 0x88, 0x80, 0x48, 0x39, 0x19, 0x93, 0x7c, 0xf7}}, |
| 362 {"1.3.6.1.4.1.8024.0.2.100.1.2", ""}, | 464 {OID("1.3.6.1.4.1.8024.0.2.100.1.2", |
| 465 "\x06\x0c\x2b\x06\x01\x04\x01\xbe\x58\x00\x02\x64\x01\x02"), | |
| 466 OID("", "")}, | |
| 363 }, | 467 }, |
| 364 // QuoVadis Root CA 2 G3 | 468 // QuoVadis Root CA 2 G3 |
| 365 // https://evsslicag3-v.quovadisglobal.com/ | 469 // https://evsslicag3-v.quovadisglobal.com/ |
| 366 { | 470 { |
| 367 {{0x09, 0x3c, 0x61, 0xf3, 0x8b, 0x8b, 0xdc, 0x7d, 0x55, 0xdf, | 471 {{0x09, 0x3c, 0x61, 0xf3, 0x8b, 0x8b, 0xdc, 0x7d, 0x55, 0xdf, |
| 368 0x75, 0x38, 0x02, 0x05, 0x00, 0xe1, 0x25, 0xf5, 0xc8, 0x36}}, | 472 0x75, 0x38, 0x02, 0x05, 0x00, 0xe1, 0x25, 0xf5, 0xc8, 0x36}}, |
| 369 {"1.3.6.1.4.1.8024.0.2.100.1.2", ""}, | 473 {OID("1.3.6.1.4.1.8024.0.2.100.1.2", |
| 474 "\x06\x0c\x2b\x06\x01\x04\x01\xbe\x58\x00\x02\x64\x01\x02"), | |
| 475 OID("", "")}, | |
| 370 }, | 476 }, |
| 371 // SecureTrust CA, SecureTrust Corporation | 477 // SecureTrust CA, SecureTrust Corporation |
| 372 // https://www.securetrust.com | 478 // https://www.securetrust.com |
| 373 // https://www.trustwave.com/ | 479 // https://www.trustwave.com/ |
| 374 { | 480 { |
| 375 {{0x87, 0x82, 0xc6, 0xc3, 0x04, 0x35, 0x3b, 0xcf, 0xd2, 0x96, | 481 {{0x87, 0x82, 0xc6, 0xc3, 0x04, 0x35, 0x3b, 0xcf, 0xd2, 0x96, |
| 376 0x92, 0xd2, 0x59, 0x3e, 0x7d, 0x44, 0xd9, 0x34, 0xff, 0x11}}, | 482 0x92, 0xd2, 0x59, 0x3e, 0x7d, 0x44, 0xd9, 0x34, 0xff, 0x11}}, |
| 377 {"2.16.840.1.114404.1.1.2.4.1", ""}, | 483 {OID("2.16.840.1.114404.1.1.2.4.1", |
| 484 "\x06\x0c\x60\x86\x48\x01\x86\xfd\x64\x01\x01\x02\x04\x01"), | |
| 485 OID("", "")}, | |
| 378 }, | 486 }, |
| 379 // Secure Global CA, SecureTrust Corporation | 487 // Secure Global CA, SecureTrust Corporation |
| 380 { | 488 { |
| 381 {{0x3a, 0x44, 0x73, 0x5a, 0xe5, 0x81, 0x90, 0x1f, 0x24, 0x86, | 489 {{0x3a, 0x44, 0x73, 0x5a, 0xe5, 0x81, 0x90, 0x1f, 0x24, 0x86, |
| 382 0x61, 0x46, 0x1e, 0x3b, 0x9c, 0xc4, 0x5f, 0xf5, 0x3a, 0x1b}}, | 490 0x61, 0x46, 0x1e, 0x3b, 0x9c, 0xc4, 0x5f, 0xf5, 0x3a, 0x1b}}, |
| 383 {"2.16.840.1.114404.1.1.2.4.1", ""}, | 491 {OID("2.16.840.1.114404.1.1.2.4.1", |
| 492 "\x06\x0c\x60\x86\x48\x01\x86\xfd\x64\x01\x01\x02\x04\x01"), | |
| 493 OID("", "")}, | |
| 384 }, | 494 }, |
| 385 // Security Communication RootCA1 | 495 // Security Communication RootCA1 |
| 386 // https://www.secomtrust.net/contact/form.html | 496 // https://www.secomtrust.net/contact/form.html |
| 387 { | 497 { |
| 388 {{0x36, 0xb1, 0x2b, 0x49, 0xf9, 0x81, 0x9e, 0xd7, 0x4c, 0x9e, | 498 {{0x36, 0xb1, 0x2b, 0x49, 0xf9, 0x81, 0x9e, 0xd7, 0x4c, 0x9e, |
| 389 0xbc, 0x38, 0x0f, 0xc6, 0x56, 0x8f, 0x5d, 0xac, 0xb2, 0xf7}}, | 499 0xbc, 0x38, 0x0f, 0xc6, 0x56, 0x8f, 0x5d, 0xac, 0xb2, 0xf7}}, |
| 390 {"1.2.392.200091.100.721.1", ""}, | 500 {OID("1.2.392.200091.100.721.1", |
| 501 "\x06\x0a\x2a\x83\x08\x8c\x9b\x1b\x64\x85\x51\x01"), | |
| 502 OID("", "")}, | |
| 391 }, | 503 }, |
| 392 // Security Communication EV RootCA1 | 504 // Security Communication EV RootCA1 |
| 393 // https://www.secomtrust.net/contact/form.html | 505 // https://www.secomtrust.net/contact/form.html |
| 394 { | 506 { |
| 395 {{0xfe, 0xb8, 0xc4, 0x32, 0xdc, 0xf9, 0x76, 0x9a, 0xce, 0xae, | 507 {{0xfe, 0xb8, 0xc4, 0x32, 0xdc, 0xf9, 0x76, 0x9a, 0xce, 0xae, |
| 396 0x3d, 0xd8, 0x90, 0x8f, 0xfd, 0x28, 0x86, 0x65, 0x64, 0x7d}}, | 508 0x3d, 0xd8, 0x90, 0x8f, 0xfd, 0x28, 0x86, 0x65, 0x64, 0x7d}}, |
| 397 {"1.2.392.200091.100.721.1", ""}, | 509 {OID("1.2.392.200091.100.721.1", |
| 510 "\x06\x0a\x2a\x83\x08\x8c\x9b\x1b\x64\x85\x51\x01"), | |
| 511 OID("", "")}, | |
| 398 }, | 512 }, |
| 399 // Security Communication EV RootCA2 | 513 // Security Communication EV RootCA2 |
| 400 // https://www.secomtrust.net/contact/form.html | 514 // https://www.secomtrust.net/contact/form.html |
| 401 { | 515 { |
| 402 {{0x5F, 0x3B, 0x8C, 0xF2, 0xF8, 0x10, 0xB3, 0x7D, 0x78, 0xB4, | 516 {{0x5F, 0x3B, 0x8C, 0xF2, 0xF8, 0x10, 0xB3, 0x7D, 0x78, 0xB4, |
| 403 0xCE, 0xEC, 0x19, 0x19, 0xC3, 0x73, 0x34, 0xB9, 0xC7, 0x74}}, | 517 0xCE, 0xEC, 0x19, 0x19, 0xC3, 0x73, 0x34, 0xB9, 0xC7, 0x74}}, |
| 404 {"1.2.392.200091.100.721.1", ""}, | 518 {OID("1.2.392.200091.100.721.1", |
| 519 "\x06\x0a\x2a\x83\x08\x8c\x9b\x1b\x64\x85\x51\x01"), | |
| 520 OID("", "")}, | |
| 405 }, | 521 }, |
| 406 // Staat der Nederlanden EV Root CA | 522 // Staat der Nederlanden EV Root CA |
| 407 // https://pkioevssl-v.quovadisglobal.com/ | 523 // https://pkioevssl-v.quovadisglobal.com/ |
| 408 { | 524 { |
| 409 {{0x76, 0xe2, 0x7e, 0xc1, 0x4f, 0xdb, 0x82, 0xc1, 0xc0, 0xa6, | 525 {{0x76, 0xe2, 0x7e, 0xc1, 0x4f, 0xdb, 0x82, 0xc1, 0xc0, 0xa6, |
| 410 0x75, 0xb5, 0x05, 0xbe, 0x3d, 0x29, 0xb4, 0xed, 0xdb, 0xbb}}, | 526 0x75, 0xb5, 0x05, 0xbe, 0x3d, 0x29, 0xb4, 0xed, 0xdb, 0xbb}}, |
| 411 {"2.16.528.1.1003.1.2.7", ""}, | 527 {OID("2.16.528.1.1003.1.2.7", |
| 528 "\x06\x09\x60\x84\x10\x01\x87\x6b\x01\x02\x07"), | |
| 529 OID("", "")}, | |
| 412 }, | 530 }, |
| 413 // StartCom Certification Authority | 531 // StartCom Certification Authority |
| 414 // https://www.startssl.com/ | 532 // https://www.startssl.com/ |
| 415 { | 533 { |
| 416 {{0x3e, 0x2b, 0xf7, 0xf2, 0x03, 0x1b, 0x96, 0xf3, 0x8c, 0xe6, | 534 {{0x3e, 0x2b, 0xf7, 0xf2, 0x03, 0x1b, 0x96, 0xf3, 0x8c, 0xe6, |
| 417 0xc4, 0xd8, 0xa8, 0x5d, 0x3e, 0x2d, 0x58, 0x47, 0x6a, 0x0f}}, | 535 0xc4, 0xd8, 0xa8, 0x5d, 0x3e, 0x2d, 0x58, 0x47, 0x6a, 0x0f}}, |
| 418 {"1.3.6.1.4.1.23223.1.1.1", ""}, | 536 {OID("1.3.6.1.4.1.23223.1.1.1", |
| 537 "\x06\x0b\x2b\x06\x01\x04\x01\x81\xb5\x37\x01\x01\x01"), | |
| 538 OID("", "")}, | |
| 419 }, | 539 }, |
| 420 // Starfield Class 2 Certification Authority | 540 // Starfield Class 2 Certification Authority |
| 421 // https://www.starfieldtech.com/ | 541 // https://www.starfieldtech.com/ |
| 422 { | 542 { |
| 423 {{0xad, 0x7e, 0x1c, 0x28, 0xb0, 0x64, 0xef, 0x8f, 0x60, 0x03, | 543 {{0xad, 0x7e, 0x1c, 0x28, 0xb0, 0x64, 0xef, 0x8f, 0x60, 0x03, |
| 424 0x40, 0x20, 0x14, 0xc3, 0xd0, 0xe3, 0x37, 0x0e, 0xb5, 0x8a}}, | 544 0x40, 0x20, 0x14, 0xc3, 0xd0, 0xe3, 0x37, 0x0e, 0xb5, 0x8a}}, |
| 425 {"2.16.840.1.114414.1.7.23.3", ""}, | 545 {OID("2.16.840.1.114414.1.7.23.3", |
| 546 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6e\x01\x07\x17\x03"), | |
| 547 OID("", "")}, | |
| 426 }, | 548 }, |
| 427 // Starfield Root Certificate Authority - G2 | 549 // Starfield Root Certificate Authority - G2 |
| 428 // https://valid.sfig2.catest.starfieldtech.com/ | 550 // https://valid.sfig2.catest.starfieldtech.com/ |
| 429 { | 551 { |
| 430 {{0xb5, 0x1c, 0x06, 0x7c, 0xee, 0x2b, 0x0c, 0x3d, 0xf8, 0x55, | 552 {{0xb5, 0x1c, 0x06, 0x7c, 0xee, 0x2b, 0x0c, 0x3d, 0xf8, 0x55, |
| 431 0xab, 0x2d, 0x92, 0xf4, 0xfe, 0x39, 0xd4, 0xe7, 0x0f, 0x0e}}, | 553 0xab, 0x2d, 0x92, 0xf4, 0xfe, 0x39, 0xd4, 0xe7, 0x0f, 0x0e}}, |
| 432 {"2.16.840.1.114414.1.7.23.3", ""}, | 554 {OID("2.16.840.1.114414.1.7.23.3", |
| 555 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6e\x01\x07\x17\x03"), | |
| 556 OID("", "")}, | |
| 433 }, | 557 }, |
| 434 // Starfield Services Root Certificate Authority - G2 | 558 // Starfield Services Root Certificate Authority - G2 |
| 435 // https://valid.sfsg2.catest.starfieldtech.com/ | 559 // https://valid.sfsg2.catest.starfieldtech.com/ |
| 436 { | 560 { |
| 437 {{0x92, 0x5a, 0x8f, 0x8d, 0x2c, 0x6d, 0x04, 0xe0, 0x66, 0x5f, | 561 {{0x92, 0x5a, 0x8f, 0x8d, 0x2c, 0x6d, 0x04, 0xe0, 0x66, 0x5f, |
| 438 0x59, 0x6a, 0xff, 0x22, 0xd8, 0x63, 0xe8, 0x25, 0x6f, 0x3f}}, | 562 0x59, 0x6a, 0xff, 0x22, 0xd8, 0x63, 0xe8, 0x25, 0x6f, 0x3f}}, |
| 439 {"2.16.840.1.114414.1.7.24.3", ""}, | 563 {OID("2.16.840.1.114414.1.7.24.3", |
| 564 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6e\x01\x07\x18\x03"), | |
| 565 OID("", "")}, | |
| 440 }, | 566 }, |
| 441 // SwissSign Gold CA - G2 | 567 // SwissSign Gold CA - G2 |
| 442 // https://testevg2.swisssign.net/ | 568 // https://testevg2.swisssign.net/ |
| 443 { | 569 { |
| 444 {{0xd8, 0xc5, 0x38, 0x8a, 0xb7, 0x30, 0x1b, 0x1b, 0x6e, 0xd4, | 570 {{0xd8, 0xc5, 0x38, 0x8a, 0xb7, 0x30, 0x1b, 0x1b, 0x6e, 0xd4, |
| 445 0x7a, 0xe6, 0x45, 0x25, 0x3a, 0x6f, 0x9f, 0x1a, 0x27, 0x61}}, | 571 0x7a, 0xe6, 0x45, 0x25, 0x3a, 0x6f, 0x9f, 0x1a, 0x27, 0x61}}, |
| 446 {"2.16.756.1.89.1.2.1.1", ""}, | 572 {OID("2.16.756.1.89.1.2.1.1", |
| 573 "\x06\x09\x60\x85\x74\x01\x59\x01\x02\x01\x01"), | |
| 574 OID("", "")}, | |
| 447 }, | 575 }, |
| 448 // Swisscom Root EV CA 2 | 576 // Swisscom Root EV CA 2 |
| 449 // https://test-quarz-ev-ca-2.pre.swissdigicert.ch | 577 // https://test-quarz-ev-ca-2.pre.swissdigicert.ch |
| 450 { | 578 { |
| 451 {{0xe7, 0xa1, 0x90, 0x29, 0xd3, 0xd5, 0x52, 0xdc, 0x0d, 0x0f, | 579 {{0xe7, 0xa1, 0x90, 0x29, 0xd3, 0xd5, 0x52, 0xdc, 0x0d, 0x0f, |
| 452 0xc6, 0x92, 0xd3, 0xea, 0x88, 0x0d, 0x15, 0x2e, 0x1a, 0x6b}}, | 580 0xc6, 0x92, 0xd3, 0xea, 0x88, 0x0d, 0x15, 0x2e, 0x1a, 0x6b}}, |
| 453 {"2.16.756.1.83.21.0", ""}, | 581 {OID("2.16.756.1.83.21.0", "\x06\x07\x60\x85\x74\x01\x53\x15\x00"), |
| 582 OID("", "")}, | |
| 454 }, | 583 }, |
| 455 // Thawte Premium Server CA | 584 // Thawte Premium Server CA |
| 456 // https://www.thawte.com/ | 585 // https://www.thawte.com/ |
| 457 { | 586 { |
| 458 {{0x62, 0x7f, 0x8d, 0x78, 0x27, 0x65, 0x63, 0x99, 0xd2, 0x7d, | 587 {{0x62, 0x7f, 0x8d, 0x78, 0x27, 0x65, 0x63, 0x99, 0xd2, 0x7d, |
| 459 0x7f, 0x90, 0x44, 0xc9, 0xfe, 0xb3, 0xf3, 0x3e, 0xfa, 0x9a}}, | 588 0x7f, 0x90, 0x44, 0xc9, 0xfe, 0xb3, 0xf3, 0x3e, 0xfa, 0x9a}}, |
| 460 {"2.16.840.1.113733.1.7.48.1", ""}, | 589 {OID("2.16.840.1.113733.1.7.48.1", |
| 590 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x30\x01"), | |
| 591 OID("", "")}, | |
| 461 }, | 592 }, |
| 462 // thawte Primary Root CA | 593 // thawte Primary Root CA |
| 463 // https://www.thawte.com/ | 594 // https://www.thawte.com/ |
| 464 { | 595 { |
| 465 {{0x91, 0xc6, 0xd6, 0xee, 0x3e, 0x8a, 0xc8, 0x63, 0x84, 0xe5, | 596 {{0x91, 0xc6, 0xd6, 0xee, 0x3e, 0x8a, 0xc8, 0x63, 0x84, 0xe5, |
| 466 0x48, 0xc2, 0x99, 0x29, 0x5c, 0x75, 0x6c, 0x81, 0x7b, 0x81}}, | 597 0x48, 0xc2, 0x99, 0x29, 0x5c, 0x75, 0x6c, 0x81, 0x7b, 0x81}}, |
| 467 {"2.16.840.1.113733.1.7.48.1", ""}, | 598 {OID("2.16.840.1.113733.1.7.48.1", |
| 599 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x30\x01"), | |
| 600 OID("", "")}, | |
| 468 }, | 601 }, |
| 469 // thawte Primary Root CA - G2 | 602 // thawte Primary Root CA - G2 |
| 470 { | 603 { |
| 471 {{0xaa, 0xdb, 0xbc, 0x22, 0x23, 0x8f, 0xc4, 0x01, 0xa1, 0x27, | 604 {{0xaa, 0xdb, 0xbc, 0x22, 0x23, 0x8f, 0xc4, 0x01, 0xa1, 0x27, |
| 472 0xbb, 0x38, 0xdd, 0xf4, 0x1d, 0xdb, 0x08, 0x9e, 0xf0, 0x12}}, | 605 0xbb, 0x38, 0xdd, 0xf4, 0x1d, 0xdb, 0x08, 0x9e, 0xf0, 0x12}}, |
| 473 {"2.16.840.1.113733.1.7.48.1", ""}, | 606 {OID("2.16.840.1.113733.1.7.48.1", |
| 607 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x30\x01"), | |
| 608 OID("", "")}, | |
| 474 }, | 609 }, |
| 475 // thawte Primary Root CA - G3 | 610 // thawte Primary Root CA - G3 |
| 476 { | 611 { |
| 477 {{0xf1, 0x8b, 0x53, 0x8d, 0x1b, 0xe9, 0x03, 0xb6, 0xa6, 0xf0, | 612 {{0xf1, 0x8b, 0x53, 0x8d, 0x1b, 0xe9, 0x03, 0xb6, 0xa6, 0xf0, |
| 478 0x56, 0x43, 0x5b, 0x17, 0x15, 0x89, 0xca, 0xf3, 0x6b, 0xf2}}, | 613 0x56, 0x43, 0x5b, 0x17, 0x15, 0x89, 0xca, 0xf3, 0x6b, 0xf2}}, |
| 479 {"2.16.840.1.113733.1.7.48.1", ""}, | 614 {OID("2.16.840.1.113733.1.7.48.1", |
| 615 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x30\x01"), | |
| 616 OID("", "")}, | |
| 480 }, | 617 }, |
| 481 // TWCA Global Root CA | 618 // TWCA Global Root CA |
| 482 // https://evssldemo3.twca.com.tw/index.html | 619 // https://evssldemo3.twca.com.tw/index.html |
| 483 { | 620 { |
| 484 {{0x9C, 0xBB, 0x48, 0x53, 0xF6, 0xA4, 0xF6, 0xD3, 0x52, 0xA4, | 621 {{0x9C, 0xBB, 0x48, 0x53, 0xF6, 0xA4, 0xF6, 0xD3, 0x52, 0xA4, |
| 485 0xE8, 0x32, 0x52, 0x55, 0x60, 0x13, 0xF5, 0xAD, 0xAF, 0x65}}, | 622 0xE8, 0x32, 0x52, 0x55, 0x60, 0x13, 0xF5, 0xAD, 0xAF, 0x65}}, |
| 486 {"1.3.6.1.4.1.40869.1.1.22.3", ""}, | 623 {OID("1.3.6.1.4.1.40869.1.1.22.3", |
| 624 "\x06\x0c\x2b\x06\x01\x04\x01\x82\xbf\x25\x01\x01\x16\x03"), | |
| 625 OID("", "")}, | |
| 487 }, | 626 }, |
| 488 // TWCA Root Certification Authority | 627 // TWCA Root Certification Authority |
| 489 // https://evssldemo.twca.com.tw/index.html | 628 // https://evssldemo.twca.com.tw/index.html |
| 490 { | 629 { |
| 491 {{0xcf, 0x9e, 0x87, 0x6d, 0xd3, 0xeb, 0xfc, 0x42, 0x26, 0x97, | 630 {{0xcf, 0x9e, 0x87, 0x6d, 0xd3, 0xeb, 0xfc, 0x42, 0x26, 0x97, |
| 492 0xa3, 0xb5, 0xa3, 0x7a, 0xa0, 0x76, 0xa9, 0x06, 0x23, 0x48}}, | 631 0xa3, 0xb5, 0xa3, 0x7a, 0xa0, 0x76, 0xa9, 0x06, 0x23, 0x48}}, |
| 493 {"1.3.6.1.4.1.40869.1.1.22.3", ""}, | 632 {OID("1.3.6.1.4.1.40869.1.1.22.3", |
| 633 "\x06\x0c\x2b\x06\x01\x04\x01\x82\xbf\x25\x01\x01\x16\x03"), | |
| 634 OID("", "")}, | |
| 494 }, | 635 }, |
| 495 // T-TeleSec GlobalRoot Class 3 | 636 // T-TeleSec GlobalRoot Class 3 |
| 496 // http://www.telesec.de/ / https://root-class3.test.telesec.de/ | 637 // http://www.telesec.de/ / https://root-class3.test.telesec.de/ |
| 497 { | 638 { |
| 498 {{0x55, 0xa6, 0x72, 0x3e, 0xcb, 0xf2, 0xec, 0xcd, 0xc3, 0x23, | 639 {{0x55, 0xa6, 0x72, 0x3e, 0xcb, 0xf2, 0xec, 0xcd, 0xc3, 0x23, |
| 499 0x74, 0x70, 0x19, 0x9d, 0x2a, 0xbe, 0x11, 0xe3, 0x81, 0xd1}}, | 640 0x74, 0x70, 0x19, 0x9d, 0x2a, 0xbe, 0x11, 0xe3, 0x81, 0xd1}}, |
| 500 {"1.3.6.1.4.1.7879.13.24.1", ""}, | 641 {OID("1.3.6.1.4.1.7879.13.24.1", |
| 642 "\x06\x0a\x2b\x06\x01\x04\x01\xbd\x47\x0d\x18\x01"), | |
| 643 OID("", "")}, | |
| 501 }, | 644 }, |
| 502 // USERTrust ECC Certification Authority | 645 // USERTrust ECC Certification Authority |
| 503 // https://usertrustecccertificationauthority-ev.comodoca.com/ | 646 // https://usertrustecccertificationauthority-ev.comodoca.com/ |
| 504 { | 647 { |
| 505 {{0xd1, 0xcb, 0xca, 0x5d, 0xb2, 0xd5, 0x2a, 0x7f, 0x69, 0x3b, | 648 {{0xd1, 0xcb, 0xca, 0x5d, 0xb2, 0xd5, 0x2a, 0x7f, 0x69, 0x3b, |
| 506 0x67, 0x4d, 0xe5, 0xf0, 0x5a, 0x1d, 0x0c, 0x95, 0x7d, 0xf0}}, | 649 0x67, 0x4d, 0xe5, 0xf0, 0x5a, 0x1d, 0x0c, 0x95, 0x7d, 0xf0}}, |
| 507 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 650 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 651 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 652 OID("", "")}, | |
| 508 }, | 653 }, |
| 509 // USERTrust RSA Certification Authority | 654 // USERTrust RSA Certification Authority |
| 510 // https://usertrustrsacertificationauthority-ev.comodoca.com/ | 655 // https://usertrustrsacertificationauthority-ev.comodoca.com/ |
| 511 { | 656 { |
| 512 {{0x2b, 0x8f, 0x1b, 0x57, 0x33, 0x0d, 0xbb, 0xa2, 0xd0, 0x7a, | 657 {{0x2b, 0x8f, 0x1b, 0x57, 0x33, 0x0d, 0xbb, 0xa2, 0xd0, 0x7a, |
| 513 0x6c, 0x51, 0xf7, 0x0e, 0xe9, 0x0d, 0xda, 0xb9, 0xad, 0x8e}}, | 658 0x6c, 0x51, 0xf7, 0x0e, 0xe9, 0x0d, 0xda, 0xb9, 0xad, 0x8e}}, |
| 514 {"1.3.6.1.4.1.6449.1.2.1.5.1", ""}, | 659 {OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 660 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 661 OID("", "")}, | |
| 515 }, | 662 }, |
| 516 // UTN-USERFirst-Hardware | 663 // UTN-USERFirst-Hardware |
| 517 { | 664 { |
| 518 {{0x04, 0x83, 0xed, 0x33, 0x99, 0xac, 0x36, 0x08, 0x05, 0x87, | 665 {{0x04, 0x83, 0xed, 0x33, 0x99, 0xac, 0x36, 0x08, 0x05, 0x87, |
| 519 0x22, 0xed, 0xbc, 0x5e, 0x46, 0x00, 0xe3, 0xbe, 0xf9, 0xd7}}, | 666 0x22, 0xed, 0xbc, 0x5e, 0x46, 0x00, 0xe3, 0xbe, 0xf9, 0xd7}}, |
| 520 { | 667 { |
| 521 "1.3.6.1.4.1.6449.1.2.1.5.1", | 668 OID("1.3.6.1.4.1.6449.1.2.1.5.1", |
| 669 "\x06\x0c\x2b\x06\x01\x04\x01\xb2\x31\x01\x02\x01\x05\x01"), | |
| 522 // This is the Network Solutions EV OID. However, this root | 670 // This is the Network Solutions EV OID. However, this root |
| 523 // cross-certifies NetSol and so we need it here too. | 671 // cross-certifies NetSol and so we need it here too. |
| 524 "1.3.6.1.4.1.782.1.2.1.8.1", | 672 OID("1.3.6.1.4.1.782.1.2.1.8.1", |
| 673 "\x06\x0c\x2b\x06\x01\x04\x01\x86\x0e\x01\x02\x01\x08\x01"), | |
| 525 }, | 674 }, |
| 526 }, | 675 }, |
| 527 // ValiCert Class 2 Policy Validation Authority | 676 // ValiCert Class 2 Policy Validation Authority |
| 528 { | 677 { |
| 529 {{0x31, 0x7a, 0x2a, 0xd0, 0x7f, 0x2b, 0x33, 0x5e, 0xf5, 0xa1, | 678 {{0x31, 0x7a, 0x2a, 0xd0, 0x7f, 0x2b, 0x33, 0x5e, 0xf5, 0xa1, |
| 530 0xc3, 0x4e, 0x4b, 0x57, 0xe8, 0xb7, 0xd8, 0xf1, 0xfc, 0xa6}}, | 679 0xc3, 0x4e, 0x4b, 0x57, 0xe8, 0xb7, 0xd8, 0xf1, 0xfc, 0xa6}}, |
| 531 {"2.16.840.1.114413.1.7.23.3", "2.16.840.1.114414.1.7.23.3"}, | 680 {OID("2.16.840.1.114413.1.7.23.3", |
| 681 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6d\x01\x07\x17\x03"), | |
| 682 OID("2.16.840.1.114414.1.7.23.3", | |
| 683 "\x06\x0b\x60\x86\x48\x01\x86\xfd\x6e\x01\x07\x17\x03")}, | |
| 532 }, | 684 }, |
| 533 // VeriSign Class 3 Public Primary Certification Authority | 685 // VeriSign Class 3 Public Primary Certification Authority |
| 534 // https://www.verisign.com/ | 686 // https://www.verisign.com/ |
| 535 { | 687 { |
| 536 {{0x74, 0x2c, 0x31, 0x92, 0xe6, 0x07, 0xe4, 0x24, 0xeb, 0x45, | 688 {{0x74, 0x2c, 0x31, 0x92, 0xe6, 0x07, 0xe4, 0x24, 0xeb, 0x45, |
| 537 0x49, 0x54, 0x2b, 0xe1, 0xbb, 0xc5, 0x3e, 0x61, 0x74, 0xe2}}, | 689 0x49, 0x54, 0x2b, 0xe1, 0xbb, 0xc5, 0x3e, 0x61, 0x74, 0xe2}}, |
| 538 {"2.16.840.1.113733.1.7.23.6", ""}, | 690 {OID("2.16.840.1.113733.1.7.23.6", |
| 691 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x17\x06"), | |
| 692 OID("", "")}, | |
| 539 }, | 693 }, |
| 540 // VeriSign Class 3 Public Primary Certification Authority - G4 | 694 // VeriSign Class 3 Public Primary Certification Authority - G4 |
| 541 { | 695 { |
| 542 {{0x22, 0xD5, 0xD8, 0xDF, 0x8F, 0x02, 0x31, 0xD1, 0x8D, 0xF7, | 696 {{0x22, 0xD5, 0xD8, 0xDF, 0x8F, 0x02, 0x31, 0xD1, 0x8D, 0xF7, |
| 543 0x9D, 0xB7, 0xCF, 0x8A, 0x2D, 0x64, 0xC9, 0x3F, 0x6C, 0x3A}}, | 697 0x9D, 0xB7, 0xCF, 0x8A, 0x2D, 0x64, 0xC9, 0x3F, 0x6C, 0x3A}}, |
| 544 {"2.16.840.1.113733.1.7.23.6", ""}, | 698 {OID("2.16.840.1.113733.1.7.23.6", |
| 699 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x17\x06"), | |
| 700 OID("", "")}, | |
| 545 }, | 701 }, |
| 546 // VeriSign Class 3 Public Primary Certification Authority - G5 | 702 // VeriSign Class 3 Public Primary Certification Authority - G5 |
| 547 // https://www.verisign.com/ | 703 // https://www.verisign.com/ |
| 548 { | 704 { |
| 549 {{0x4e, 0xb6, 0xd5, 0x78, 0x49, 0x9b, 0x1c, 0xcf, 0x5f, 0x58, | 705 {{0x4e, 0xb6, 0xd5, 0x78, 0x49, 0x9b, 0x1c, 0xcf, 0x5f, 0x58, |
| 550 0x1e, 0xad, 0x56, 0xbe, 0x3d, 0x9b, 0x67, 0x44, 0xa5, 0xe5}}, | 706 0x1e, 0xad, 0x56, 0xbe, 0x3d, 0x9b, 0x67, 0x44, 0xa5, 0xe5}}, |
| 551 {"2.16.840.1.113733.1.7.23.6", ""}, | 707 {OID("2.16.840.1.113733.1.7.23.6", |
| 708 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x17\x06"), | |
| 709 OID("", "")}, | |
| 552 }, | 710 }, |
| 553 // VeriSign Universal Root Certification Authority | 711 // VeriSign Universal Root Certification Authority |
| 554 { | 712 { |
| 555 {{0x36, 0x79, 0xca, 0x35, 0x66, 0x87, 0x72, 0x30, 0x4d, 0x30, | 713 {{0x36, 0x79, 0xca, 0x35, 0x66, 0x87, 0x72, 0x30, 0x4d, 0x30, |
| 556 0xa5, 0xfb, 0x87, 0x3b, 0x0f, 0xa7, 0x7b, 0xb7, 0x0d, 0x54}}, | 714 0xa5, 0xfb, 0x87, 0x3b, 0x0f, 0xa7, 0x7b, 0xb7, 0x0d, 0x54}}, |
| 557 {"2.16.840.1.113733.1.7.23.6", ""}, | 715 {OID("2.16.840.1.113733.1.7.23.6", |
| 716 "\x06\x0b\x60\x86\x48\x01\x86\xf8\x45\x01\x07\x17\x06"), | |
| 717 OID("", "")}, | |
| 558 }, | 718 }, |
| 559 // Wells Fargo WellsSecure Public Root Certificate Authority | 719 // Wells Fargo WellsSecure Public Root Certificate Authority |
| 560 // https://nerys.wellsfargo.com/test.html | 720 // https://nerys.wellsfargo.com/test.html |
| 561 { | 721 { |
| 562 {{0xe7, 0xb4, 0xf6, 0x9d, 0x61, 0xec, 0x90, 0x69, 0xdb, 0x7e, | 722 {{0xe7, 0xb4, 0xf6, 0x9d, 0x61, 0xec, 0x90, 0x69, 0xdb, 0x7e, |
| 563 0x90, 0xa7, 0x40, 0x1a, 0x3c, 0xf4, 0x7d, 0x4f, 0xe8, 0xee}}, | 723 0x90, 0xa7, 0x40, 0x1a, 0x3c, 0xf4, 0x7d, 0x4f, 0xe8, 0xee}}, |
| 564 {"2.16.840.1.114171.500.9", ""}, | 724 {OID("2.16.840.1.114171.500.9", |
| 725 "\x06\x0a\x60\x86\x48\x01\x86\xfb\x7b\x83\x74\x09"), | |
| 726 OID("", "")}, | |
| 565 }, | 727 }, |
| 566 // XRamp Global Certification Authority | 728 // XRamp Global Certification Authority |
| 567 { | 729 { |
| 568 {{0xb8, 0x01, 0x86, 0xd1, 0xeb, 0x9c, 0x86, 0xa5, 0x41, 0x04, | 730 {{0xb8, 0x01, 0x86, 0xd1, 0xeb, 0x9c, 0x86, 0xa5, 0x41, 0x04, |
| 569 0xcf, 0x30, 0x54, 0xf3, 0x4c, 0x52, 0xb7, 0xe5, 0x58, 0xc6}}, | 731 0xcf, 0x30, 0x54, 0xf3, 0x4c, 0x52, 0xb7, 0xe5, 0x58, 0xc6}}, |
| 570 {"2.16.840.1.114404.1.1.2.4.1", ""}, | 732 {OID("2.16.840.1.114404.1.1.2.4.1", |
| 733 "\x06\x0c\x60\x86\x48\x01\x86\xfd\x64\x01\x01\x02\x04\x01"), | |
| 734 OID("", "")}, | |
| 571 }}; | 735 }}; |
| 572 | 736 |
| 573 #endif // defined(USE_NSS_CERTS) || defined(OS_IOS) || defined(OS_WIN) | 737 #endif // defined(USE_NSS_CERTS) || defined(OS_IOS) || defined(OS_WIN) |
| 574 | 738 |
| 575 static base::LazyInstance<EVRootCAMetadata>::Leaky | 739 static base::LazyInstance<EVRootCAMetadata>::Leaky |
| 576 g_ev_root_ca_metadata = LAZY_INSTANCE_INITIALIZER; | 740 g_ev_root_ca_metadata = LAZY_INSTANCE_INITIALIZER; |
| 577 | 741 |
| 578 // static | 742 // static |
| 579 EVRootCAMetadata* EVRootCAMetadata::GetInstance() { | 743 EVRootCAMetadata* EVRootCAMetadata::GetInstance() { |
| 580 return g_ev_root_ca_metadata.Pointer(); | 744 return g_ev_root_ca_metadata.Pointer(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 701 } | 865 } |
| 702 | 866 |
| 703 bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) { | 867 bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) { |
| 704 ExtraEVCAMap::iterator it = extra_cas_.find(fingerprint); | 868 ExtraEVCAMap::iterator it = extra_cas_.find(fingerprint); |
| 705 if (it == extra_cas_.end()) | 869 if (it == extra_cas_.end()) |
| 706 return false; | 870 return false; |
| 707 extra_cas_.erase(it); | 871 extra_cas_.erase(it); |
| 708 return true; | 872 return true; |
| 709 } | 873 } |
| 710 | 874 |
| 875 #elif defined(OS_MACOSX) | |
|
Ryan Sleevi
2016/11/08 00:11:20
At this point, we should probably move these into
mattm
2016/11/08 23:06:25
I'll poke at that separately.
| |
| 876 | |
| 877 bool EVRootCAMetadata::IsEVPolicyOID(PolicyOID policy_oid) const { | |
| 878 for (size_t i = 0; i < arraysize(ev_root_ca_metadata); i++) { | |
| 879 for (size_t j = 0; j < arraysize(ev_root_ca_metadata[i].policy_oids); j++) { | |
| 880 if (ev_root_ca_metadata[i].policy_oids[j][0] == '\0') | |
| 881 break; | |
| 882 size_t len = ev_root_ca_metadata[i].policy_oids[j][1]; | |
| 883 DCHECK_LE(len, arraysize(ev_root_ca_metadata[i].policy_oids[j]) - 2); | |
| 884 der::Input ev_oid(ev_root_ca_metadata[i].policy_oids[j] + 2, len); | |
| 885 if (policy_oid == ev_oid) | |
| 886 return true; | |
| 887 } | |
| 888 } | |
| 889 | |
| 890 for (ExtraEVCAMap::const_iterator i = extra_cas_.begin(); | |
| 891 i != extra_cas_.end(); i++) { | |
| 892 if (der::Input(&i->second) == policy_oid) | |
| 893 return true; | |
| 894 } | |
| 895 | |
| 896 return false; | |
| 897 } | |
| 898 | |
| 899 bool EVRootCAMetadata::HasEVPolicyOID(const SHA1HashValue& fingerprint, | |
| 900 PolicyOID policy_oid) const { | |
| 901 for (size_t i = 0; i < arraysize(ev_root_ca_metadata); i++) { | |
| 902 if (fingerprint != ev_root_ca_metadata[i].fingerprint) | |
| 903 continue; | |
| 904 for (size_t j = 0; j < arraysize(ev_root_ca_metadata[i].policy_oids); j++) { | |
| 905 if (ev_root_ca_metadata[i].policy_oids[j][0] == '\0') | |
| 906 break; | |
| 907 size_t len = ev_root_ca_metadata[i].policy_oids[j][1]; | |
| 908 DCHECK_LE(len, arraysize(ev_root_ca_metadata[i].policy_oids[j]) - 2); | |
| 909 der::Input ev_oid(ev_root_ca_metadata[i].policy_oids[j] + 2, len); | |
| 910 if (policy_oid == ev_oid) | |
| 911 return true; | |
| 912 } | |
| 913 return false; | |
| 914 } | |
| 915 | |
| 916 ExtraEVCAMap::const_iterator it = extra_cas_.find(fingerprint); | |
| 917 return it != extra_cas_.end() && der::Input(&it->second) == policy_oid; | |
| 918 } | |
| 919 | |
| 920 bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint, | |
| 921 const char* policy) { | |
| 922 for (size_t i = 0; i < arraysize(ev_root_ca_metadata); i++) { | |
| 923 if (fingerprint == ev_root_ca_metadata[i].fingerprint) | |
| 924 return false; | |
| 925 } | |
| 926 | |
| 927 if (extra_cas_.find(fingerprint) != extra_cas_.end()) | |
| 928 return false; | |
| 929 | |
| 930 int nid = OBJ_txt2nid(policy); | |
| 931 if (nid == NID_undef) | |
| 932 nid = OBJ_create(policy, nullptr, nullptr); | |
| 933 if (nid == NID_undef) | |
| 934 return false; | |
| 935 uint8_t* der; | |
| 936 size_t der_len; | |
| 937 bssl::ScopedCBB cbb; | |
| 938 if (!CBB_init(cbb.get(), 0) || !OBJ_nid2cbb(cbb.get(), nid) || | |
| 939 !CBB_finish(cbb.get(), &der, &der_len)) | |
| 940 return false; | |
| 941 | |
| 942 DCHECK_GT(der_len, 2U); | |
| 943 DCHECK_EQ(der[0], 0x6); // OBJECT IDENTIFIER | |
| 944 extra_cas_[fingerprint] = | |
| 945 std::string(reinterpret_cast<char*>(der) + 2, der_len - 2); | |
| 946 return true; | |
| 947 } | |
| 948 | |
| 949 bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) { | |
| 950 ExtraEVCAMap::iterator it = extra_cas_.find(fingerprint); | |
| 951 if (it == extra_cas_.end()) | |
| 952 return false; | |
| 953 extra_cas_.erase(it); | |
| 954 return true; | |
| 955 } | |
| 956 | |
| 711 #else | 957 #else |
| 712 | 958 |
| 713 // These are just stub functions for platforms where we don't use this EV | 959 // These are just stub functions for platforms where we don't use this EV |
|
Ryan Sleevi
2016/11/08 00:11:20
And we'd delete these stubs (if possible).
mattm
2016/11/08 23:06:25
Acknowledged.
| |
| 714 // metadata. | 960 // metadata. |
| 715 | 961 |
| 716 bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint, | 962 bool EVRootCAMetadata::AddEVCA(const SHA1HashValue& fingerprint, |
| 717 const char* policy) { | 963 const char* policy) { |
| 718 return true; | 964 return true; |
| 719 } | 965 } |
| 720 | 966 |
| 721 bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) { | 967 bool EVRootCAMetadata::RemoveEVCA(const SHA1HashValue& fingerprint) { |
| 722 return true; | 968 return true; |
| 723 } | 969 } |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 745 ev_policy_[metadata.fingerprint].push_back(policy); | 991 ev_policy_[metadata.fingerprint].push_back(policy); |
| 746 policy_oids_.insert(policy); | 992 policy_oids_.insert(policy); |
| 747 } | 993 } |
| 748 } | 994 } |
| 749 #endif | 995 #endif |
| 750 } | 996 } |
| 751 | 997 |
| 752 EVRootCAMetadata::~EVRootCAMetadata() { } | 998 EVRootCAMetadata::~EVRootCAMetadata() { } |
| 753 | 999 |
| 754 } // namespace net | 1000 } // namespace net |
| OLD | NEW |