Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/tutor-pro/vendor/fgrosse/phpasn1/lib/ASN1/OID.php
Keine Baseline-Datei – Diff nur gegen leer.
1
-
1
+
<?php
2
+
/*
3
+
* This file is part of the PHPASN1 library.
4
+
*
5
+
* Copyright © Friedrich Große <friedrich.grosse@gmail.com>
6
+
*
7
+
* For the full copyright and license information, please view the LICENSE
8
+
* file that was distributed with this source code.
9
+
*/
10
+
11
+
namespace FG\ASN1;
12
+
13
+
class OID
14
+
{
15
+
const RSA_ENCRYPTION = '1.2.840.113549.1.1.1';
16
+
const MD5_WITH_RSA_ENCRYPTION = '1.2.840.113549.1.1.4';
17
+
const SHA1_WITH_RSA_SIGNATURE = '1.2.840.113549.1.1.5';
18
+
const SHA256_WITH_RSA_SIGNATURE = '1.2.840.113549.1.1.11';
19
+
const PKCS9_EMAIL = '1.2.840.113549.1.9.1';
20
+
const PKCS9_UNSTRUCTURED_NAME = '1.2.840.113549.1.9.2';
21
+
const PKCS9_CONTENT_TYPE = '1.2.840.113549.1.9.3';
22
+
const PKCS9_MESSAGE_DIGEST = '1.2.840.113549.1.9.4';
23
+
const PKCS9_SIGNING_TIME = '1.2.840.113549.1.9.5';
24
+
const PKCS9_EXTENSION_REQUEST = '1.2.840.113549.1.9.14';
25
+
26
+
// certificate extension identifier
27
+
const CERT_EXT_SUBJECT_DIRECTORY_ATTR = '2.5.29.9';
28
+
const CERT_EXT_SUBJECT_KEY_IDENTIFIER = '2.5.29.14';
29
+
const CERT_EXT_KEY_USAGE = '2.5.29.15';
30
+
const CERT_EXT_PRIVATE_KEY_USAGE_PERIOD = '2.5.29.16';
31
+
const CERT_EXT_SUBJECT_ALT_NAME = '2.5.29.17';
32
+
const CERT_EXT_ISSUER_ALT_NAME = '2.5.29.18';
33
+
const CERT_EXT_BASIC_CONSTRAINTS = '2.5.29.19';
34
+
const CERT_EXT_CRL_NUMBER = '2.5.29.20';
35
+
const CERT_EXT_REASON_CODE = '2.5.29.21';
36
+
const CERT_EXT_INVALIDITY_DATE = '2.5.29.24';
37
+
const CERT_EXT_DELTA_CRL_INDICATOR = '2.5.29.27';
38
+
const CERT_EXT_ISSUING_DIST_POINT = '2.5.29.28';
39
+
const CERT_EXT_CERT_ISSUER = '2.5.29.29';
40
+
const CERT_EXT_NAME_CONSTRAINTS = '2.5.29.30';
41
+
const CERT_EXT_CRL_DISTRIBUTION_POINTS = '2.5.29.31';
42
+
const CERT_EXT_CERT_POLICIES = '2.5.29.32';
43
+
const CERT_EXT_AUTHORITY_KEY_IDENTIFIER = '2.5.29.35';
44
+
const CERT_EXT_EXTENDED_KEY_USAGE = '2.5.29.37';
45
+
46
+
// standard certificate files
47
+
const COMMON_NAME = '2.5.4.3';
48
+
const SURNAME = '2.5.4.4';
49
+
const SERIAL_NUMBER = '2.5.4.5';
50
+
const COUNTRY_NAME = '2.5.4.6';
51
+
const LOCALITY_NAME = '2.5.4.7';
52
+
const STATE_OR_PROVINCE_NAME = '2.5.4.8';
53
+
const STREET_ADDRESS = '2.5.4.9';
54
+
const ORGANIZATION_NAME = '2.5.4.10';
55
+
const OU_NAME = '2.5.4.11';
56
+
const TITLE = '2.5.4.12';
57
+
const DESCRIPTION = '2.5.4.13';
58
+
const POSTAL_ADDRESS = '2.5.4.16';
59
+
const POSTAL_CODE = '2.5.4.17';
60
+
const AUTHORITY_REVOCATION_LIST = '2.5.4.38';
61
+
62
+
const AUTHORITY_INFORMATION_ACCESS = '1.3.6.1.5.5.7.1.1';
63
+
64
+
/**
65
+
* Returns the name of the given object identifier.
66
+
*
67
+
* Some OIDs are saved as class constants in this class.
68
+
* If the wanted oidString is not among them, this method will
69
+
* query http://oid-info.com for the right name.
70
+
* This behavior can be suppressed by setting the second method parameter to false.
71
+
*
72
+
* @param string $oidString
73
+
* @param bool $loadFromWeb
74
+
*
75
+
* @see self::loadFromWeb($oidString)
76
+
*
77
+
* @return string
78
+
*/
79
+
public static function getName($oidString, $loadFromWeb = true)
80
+
{
81
+
$oids = [
82
+
'1.2' => 'ISO Member Body',
83
+
'1.3' => 'org',
84
+
'1.3.6.1.5.5.8.1.1' => 'hmac-md5',
85
+
'1.3.6.1.5.5.8.1.2' => 'hmac-sha1',
86
+
'1.3.132' => 'certicom-arc',
87
+
'2.23' => 'International Organizations',
88
+
'2.23.43' => 'wap',
89
+
'2.23.43.1' => 'wap-wsg',
90
+
'2.5.1.5' => 'Selected Attribute Types',
91
+
'2.5.1.5.55' => 'clearance',
92
+
'1.2.840' => 'ISO US Member Body',
93
+
'1.2.840.10040' => 'X9.57',
94
+
'1.2.840.10040.4' => 'X9.57 CM ?',
95
+
'1.2.840.10040.4.1' => 'dsaEncryption',
96
+
'1.2.840.10040.4.3' => 'dsaWithSHA1',
97
+
'1.2.840.10045' => 'ANSI X9.62',
98
+
'1.2.840.10045.1' => 'X9-62_id-fieldType',
99
+
'1.2.840.10045.1.1' => 'X9-62_prime-field',
100
+
'1.2.840.10045.1.2' => 'X9-62_characteristic-two-field',
101
+
'1.2.840.10045.1.2.3' => 'X9-62_id-characteristic-two-basis',
102
+
'1.2.840.10045.1.2.3.1' => 'X9-62_onBasis',
103
+
'1.2.840.10045.1.2.3.2' => 'X9-62_tpBasis',
104
+
'1.2.840.10045.1.2.3.3' => 'X9-62_ppBasis',
105
+
'1.2.840.10045.2' => 'X9-62_id-publicKeyType',
106
+
'1.2.840.10045.2.1' => 'X9-62_id-ecPublicKey',
107
+
'1.2.840.10045.3' => 'X9-62_ellipticCurve',
108
+
'1.2.840.10045.3.0' => 'X9-62_c-TwoCurve',
109
+
'1.2.840.10045.3.0.1' => 'X9-62_c2pnb163v1',
110
+
'1.2.840.10045.3.0.2' => 'X9-62_c2pnb163v2',
111
+
'1.2.840.10045.3.0.3' => 'X9-62_c2pnb163v3',
112
+
'1.2.840.10045.3.0.4' => 'X9-62_c2pnb176v1',
113
+
'1.2.840.10045.3.0.5' => 'X9-62_c2tnb191v1',
114
+
'1.2.840.10045.3.0.6' => 'X9-62_c2tnb191v2',
115
+
'1.2.840.10045.3.0.7' => 'X9-62_c2tnb191v3',
116
+
'1.2.840.10045.3.0.8' => 'X9-62_c2onb191v4',
117
+
'1.2.840.10045.3.0.9' => 'X9-62_c2onb191v5',
118
+
'1.2.840.10045.3.0.10' => 'X9-62_c2pnb208w1',
119
+
'1.2.840.10045.3.0.11' => 'X9-62_c2tnb239v1',
120
+
'1.2.840.10045.3.0.12' => 'X9-62_c2tnb239v2',
121
+
'1.2.840.10045.3.0.13' => 'X9-62_c2tnb239v3',
122
+
'1.2.840.10045.3.0.14' => 'X9-62_c2onb239v4',
123
+
'1.2.840.10045.3.0.15' => 'X9-62_c2onb239v5',
124
+
'1.2.840.10045.3.0.16' => 'X9-62_c2pnb272w1',
125
+
'1.2.840.10045.3.0.17' => 'X9-62_c2pnb304w1',
126
+
'1.2.840.10045.3.0.18' => 'X9-62_c2tnb359v1',
127
+
'1.2.840.10045.3.0.19' => 'X9-62_c2pnb368w1',
128
+
'1.2.840.10045.3.0.20' => 'X9-62_c2tnb431r1',
129
+
'1.2.840.10045.3.1' => 'X9-62_primeCurve',
130
+
'1.2.840.10045.3.1.1' => 'X9-62_prime192v1',
131
+
'1.2.840.10045.3.1.2' => 'X9-62_prime192v2',
132
+
'1.2.840.10045.3.1.3' => 'X9-62_prime192v3',
133
+
'1.2.840.10045.3.1.4' => 'X9-62_prime239v1',
134
+
'1.2.840.10045.3.1.5' => 'X9-62_prime239v2',
135
+
'1.2.840.10045.3.1.6' => 'X9-62_prime239v3',
136
+
'1.2.840.10045.3.1.7' => 'X9-62_prime256v1',
137
+
'1.2.840.10045.4' => 'X9-62_id-ecSigType',
138
+
'1.2.840.10045.4.1' => 'ecdsa-with-SHA1',
139
+
'1.2.840.10045.4.2' => 'ecdsa-with-Recommended',
140
+
'1.2.840.10045.4.3' => 'ecdsa-with-Specified',
141
+
'1.2.840.10045.4.3.1' => 'ecdsa-with-SHA224',
142
+
'1.2.840.10045.4.3.2' => 'ecdsa-with-SHA256',
143
+
'1.2.840.10045.4.3.3' => 'ecdsa-with-SHA384',
144
+
'1.2.840.10045.4.3.4' => 'ecdsa-with-SHA512',
145
+
'1.3.132.0' => 'secg_ellipticCurve',
146
+
'2.23.43.1.4' => 'wap-wsg-idm-ecid',
147
+
'2.23.43.1.4.1' => 'wap-wsg-idm-ecid-wtls1',
148
+
'2.23.43.1.4.3' => 'wap-wsg-idm-ecid-wtls3',
149
+
'2.23.43.1.4.4' => 'wap-wsg-idm-ecid-wtls4',
150
+
'2.23.43.1.4.5' => 'wap-wsg-idm-ecid-wtls5',
151
+
'2.23.43.1.4.6' => 'wap-wsg-idm-ecid-wtls6',
152
+
'2.23.43.1.4.7' => 'wap-wsg-idm-ecid-wtls7',
153
+
'2.23.43.1.4.8' => 'wap-wsg-idm-ecid-wtls8',
154
+
'2.23.43.1.4.9' => 'wap-wsg-idm-ecid-wtls9',
155
+
'2.23.43.1.4.10' => 'wap-wsg-idm-ecid-wtls10',
156
+
'2.23.43.1.4.11' => 'wap-wsg-idm-ecid-wtls11',
157
+
'2.23.43.1.4.12' => 'wap-wsg-idm-ecid-wtls12',
158
+
'1.2.840.113533.7.66.10' => 'cast5-cbc',
159
+
'1.2.840.113533.7.66.12' => 'pbeWithMD5AndCast5CBC',
160
+
'1.2.840.113533.7.66.13' => 'password based MAC',
161
+
'1.2.840.113533.7.66.30' => 'Diffie-Hellman based MAC',
162
+
'1.2.840.113549' => 'RSA Data Security, Inc.',
163
+
'1.2.840.113549.1' => 'RSA Data Security, Inc. PKCS',
164
+
'1.2.840.113549.1.1' => 'pkcs1',
165
+
'1.2.840.113549.1.1.1' => 'rsaEncryption',
166
+
'1.2.840.113549.1.1.2' => 'md2WithRSAEncryption',
167
+
'1.2.840.113549.1.1.3' => 'md4WithRSAEncryption',
168
+
'1.2.840.113549.1.1.4' => 'md5WithRSAEncryption',
169
+
'1.2.840.113549.1.1.5' => 'sha1WithRSAEncryption',
170
+
'1.2.840.113549.1.1.7' => 'rsaesOaep',
171
+
'1.2.840.113549.1.1.8' => 'mgf1',
172
+
'1.2.840.113549.1.1.9' => 'pSpecified',
173
+
'1.2.840.113549.1.1.10' => 'rsassaPss',
174
+
'1.2.840.113549.1.1.11' => 'sha256WithRSAEncryption',
175
+
'1.2.840.113549.1.1.12' => 'sha384WithRSAEncryption',
176
+
'1.2.840.113549.1.1.13' => 'sha512WithRSAEncryption',
177
+
'1.2.840.113549.1.1.14' => 'sha224WithRSAEncryption',
178
+
'1.2.840.113549.1.3' => 'pkcs3',
179
+
'1.2.840.113549.1.3.1' => 'dhKeyAgreement',
180
+
'1.2.840.113549.1.5' => 'pkcs5',
181
+
'1.2.840.113549.1.5.1' => 'pbeWithMD2AndDES-CBC',
182
+
'1.2.840.113549.1.5.3' => 'pbeWithMD5AndDES-CBC',
183
+
'1.2.840.113549.1.5.4' => 'pbeWithMD2AndRC2-CBC',
184
+
'1.2.840.113549.1.5.6' => 'pbeWithMD5AndRC2-CBC',
185
+
'1.2.840.113549.1.5.10' => 'pbeWithSHA1AndDES-CBC',
186
+
'1.2.840.113549.1.5.11' => 'pbeWithSHA1AndRC2-CBC',
187
+
'1.2.840.113549.1.5.12' => 'PBKDF2',
188
+
'1.2.840.113549.1.5.13' => 'PBES2',
189
+
'1.2.840.113549.1.5.14' => 'PBMAC1',
190
+
'1.2.840.113549.1.7' => 'pkcs7',
191
+
'1.2.840.113549.1.7.1' => 'pkcs7-data',
192
+
'1.2.840.113549.1.7.2' => 'pkcs7-signedData',
193
+
'1.2.840.113549.1.7.3' => 'pkcs7-envelopedData',
194
+
'1.2.840.113549.1.7.4' => 'pkcs7-signedAndEnvelopedData',
195
+
'1.2.840.113549.1.7.5' => 'pkcs7-digestData',
196
+
'1.2.840.113549.1.7.6' => 'pkcs7-encryptedData',
197
+
'1.2.840.113549.1.9' => 'pkcs9',
198
+
'1.2.840.113549.1.9.1' => 'emailAddress',
199
+
'1.2.840.113549.1.9.2' => 'unstructuredName',
200
+
'1.2.840.113549.1.9.3' => 'contentType',
201
+
'1.2.840.113549.1.9.4' => 'messageDigest',
202
+
'1.2.840.113549.1.9.5' => 'signingTime',
203
+
'1.2.840.113549.1.9.6' => 'countersignature',
204
+
'1.2.840.113549.1.9.7' => 'challengePassword',
205
+
'1.2.840.113549.1.9.8' => 'unstructuredAddress',
206
+
'1.2.840.113549.1.9.9' => 'extendedCertificateAttributes',
207
+
'1.2.840.113549.1.9.14' => 'Extension Request',
208
+
'1.2.840.113549.1.9.15' => 'S/MIME Capabilities',
209
+
'1.2.840.113549.1.9.16' => 'S/MIME',
210
+
'1.2.840.113549.1.9.16.0' => 'id-smime-mod',
211
+
'1.2.840.113549.1.9.16.1' => 'id-smime-ct',
212
+
'1.2.840.113549.1.9.16.2' => 'id-smime-aa',
213
+
'1.2.840.113549.1.9.16.3' => 'id-smime-alg',
214
+
'1.2.840.113549.1.9.16.4' => 'id-smime-cd',
215
+
'1.2.840.113549.1.9.16.5' => 'id-smime-spq',
216
+
'1.2.840.113549.1.9.16.6' => 'id-smime-cti',
217
+
'1.2.840.113549.1.9.16.0.1' => 'id-smime-mod-cms',
218
+
'1.2.840.113549.1.9.16.0.2' => 'id-smime-mod-ess',
219
+
'1.2.840.113549.1.9.16.0.3' => 'id-smime-mod-oid',
220
+
'1.2.840.113549.1.9.16.0.4' => 'id-smime-mod-msg-v3',
221
+
'1.2.840.113549.1.9.16.0.5' => 'id-smime-mod-ets-eSignature-88',
222
+
'1.2.840.113549.1.9.16.0.6' => 'id-smime-mod-ets-eSignature-97',
223
+
'1.2.840.113549.1.9.16.0.7' => 'id-smime-mod-ets-eSigPolicy-88',
224
+
'1.2.840.113549.1.9.16.0.8' => 'id-smime-mod-ets-eSigPolicy-97',
225
+
'1.2.840.113549.1.9.16.1.1' => 'id-smime-ct-receipt',
226
+
'1.2.840.113549.1.9.16.1.2' => 'id-smime-ct-authData',
227
+
'1.2.840.113549.1.9.16.1.3' => 'id-smime-ct-publishCert',
228
+
'1.2.840.113549.1.9.16.1.4' => 'id-smime-ct-TSTInfo',
229
+
'1.2.840.113549.1.9.16.1.5' => 'id-smime-ct-TDTInfo',
230
+
'1.2.840.113549.1.9.16.1.6' => 'id-smime-ct-contentInfo',
231
+
'1.2.840.113549.1.9.16.1.7' => 'id-smime-ct-DVCSRequestData',
232
+
'1.2.840.113549.1.9.16.1.8' => 'id-smime-ct-DVCSResponseData',
233
+
'1.2.840.113549.1.9.16.1.9' => 'id-smime-ct-compressedData',
234
+
'1.2.840.113549.1.9.16.1.27' => 'id-ct-asciiTextWithCRLF',
235
+
'1.2.840.113549.1.9.16.2.1' => 'id-smime-aa-receiptRequest',
236
+
'1.2.840.113549.1.9.16.2.2' => 'id-smime-aa-securityLabel',
237
+
'1.2.840.113549.1.9.16.2.3' => 'id-smime-aa-mlExpandHistory',
238
+
'1.2.840.113549.1.9.16.2.4' => 'id-smime-aa-contentHint',
239
+
'1.2.840.113549.1.9.16.2.5' => 'id-smime-aa-msgSigDigest',
240
+
'1.2.840.113549.1.9.16.2.6' => 'id-smime-aa-encapContentType',
241
+
'1.2.840.113549.1.9.16.2.7' => 'id-smime-aa-contentIdentifier',
242
+
'1.2.840.113549.1.9.16.2.8' => 'id-smime-aa-macValue',
243
+
'1.2.840.113549.1.9.16.2.9' => 'id-smime-aa-equivalentLabels',
244
+
'1.2.840.113549.1.9.16.2.10' => 'id-smime-aa-contentReference',
245
+
'1.2.840.113549.1.9.16.2.11' => 'id-smime-aa-encrypKeyPref',
246
+
'1.2.840.113549.1.9.16.2.12' => 'id-smime-aa-signingCertificate',
247
+
'1.2.840.113549.1.9.16.2.13' => 'id-smime-aa-smimeEncryptCerts',
248
+
'1.2.840.113549.1.9.16.2.14' => 'id-smime-aa-timeStampToken',
249
+
'1.2.840.113549.1.9.16.2.15' => 'id-smime-aa-ets-sigPolicyId',
250
+
'1.2.840.113549.1.9.16.2.16' => 'id-smime-aa-ets-commitmentType',
251
+
'1.2.840.113549.1.9.16.2.17' => 'id-smime-aa-ets-signerLocation',
252
+
'1.2.840.113549.1.9.16.2.18' => 'id-smime-aa-ets-signerAttr',
253
+
'1.2.840.113549.1.9.16.2.19' => 'id-smime-aa-ets-otherSigCert',
254
+
'1.2.840.113549.1.9.16.2.20' => 'id-smime-aa-ets-contentTimestamp',
255
+
'1.2.840.113549.1.9.16.2.21' => 'id-smime-aa-ets-CertificateRefs',
256
+
'1.2.840.113549.1.9.16.2.22' => 'id-smime-aa-ets-RevocationRefs',
257
+
'1.2.840.113549.1.9.16.2.23' => 'id-smime-aa-ets-certValues',
258
+
'1.2.840.113549.1.9.16.2.24' => 'id-smime-aa-ets-revocationValues',
259
+
'1.2.840.113549.1.9.16.2.25' => 'id-smime-aa-ets-escTimeStamp',
260
+
'1.2.840.113549.1.9.16.2.26' => 'id-smime-aa-ets-certCRLTimestamp',
261
+
'1.2.840.113549.1.9.16.2.27' => 'id-smime-aa-ets-archiveTimeStamp',
262
+
'1.2.840.113549.1.9.16.2.28' => 'id-smime-aa-signatureType',
263
+
'1.2.840.113549.1.9.16.2.29' => 'id-smime-aa-dvcs-dvc',
264
+
'1.2.840.113549.1.9.16.3.1' => 'id-smime-alg-ESDHwith3DES',
265
+
'1.2.840.113549.1.9.16.3.2' => 'id-smime-alg-ESDHwithRC2',
266
+
'1.2.840.113549.1.9.16.3.3' => 'id-smime-alg-3DESwrap',
267
+
'1.2.840.113549.1.9.16.3.4' => 'id-smime-alg-RC2wrap',
268
+
'1.2.840.113549.1.9.16.3.5' => 'id-smime-alg-ESDH',
269
+
'1.2.840.113549.1.9.16.3.6' => 'id-smime-alg-CMS3DESwrap',
270
+
'1.2.840.113549.1.9.16.3.7' => 'id-smime-alg-CMSRC2wrap',
271
+
'1.2.840.113549.1.9.16.3.9' => 'id-alg-PWRI-KEK',
272
+
'1.2.840.113549.1.9.16.4.1' => 'id-smime-cd-ldap',
273
+
'1.2.840.113549.1.9.16.5.1' => 'id-smime-spq-ets-sqt-uri',
274
+
'1.2.840.113549.1.9.16.5.2' => 'id-smime-spq-ets-sqt-unotice',
275
+
'1.2.840.113549.1.9.16.6.1' => 'id-smime-cti-ets-proofOfOrigin',
276
+
'1.2.840.113549.1.9.16.6.2' => 'id-smime-cti-ets-proofOfReceipt',
277
+
'1.2.840.113549.1.9.16.6.3' => 'id-smime-cti-ets-proofOfDelivery',
278
+
'1.2.840.113549.1.9.16.6.4' => 'id-smime-cti-ets-proofOfSender',
279
+
'1.2.840.113549.1.9.16.6.5' => 'id-smime-cti-ets-proofOfApproval',
280
+
'1.2.840.113549.1.9.16.6.6' => 'id-smime-cti-ets-proofOfCreation',
281
+
'1.2.840.113549.1.9.20' => 'friendlyName',
282
+
'1.2.840.113549.1.9.21' => 'localKeyID',
283
+
'1.3.6.1.4.1.311.17.1' => 'Microsoft CSP Name',
284
+
'1.3.6.1.4.1.311.17.2' => 'Microsoft Local Key set',
285
+
'1.2.840.113549.1.9.22' => 'certTypes',
286
+
'1.2.840.113549.1.9.22.1' => 'x509Certificate',
287
+
'1.2.840.113549.1.9.22.2' => 'sdsiCertificate',
288
+
289
+
'1.2.840.113549.1.9.23' => 'crlTypes',
290
+
'1.2.840.113549.1.9.23.1' => 'x509Crl',
291
+
'1.2.840.113549.1.12' => 'pkcs12',
292
+
'1.2.840.113549.1.12.1' => 'pkcs12-pbeids',
293
+
'1.2.840.113549.1.12.1.1' => 'pbeWithSHA1And128BitRC4',
294
+
'1.2.840.113549.1.12.1.2' => 'pbeWithSHA1And40BitRC4',
295
+
'1.2.840.113549.1.12.1.3' => 'pbeWithSHA1And3-KeyTripleDES-CBC',
296
+
'1.2.840.113549.1.12.1.4' => 'pbeWithSHA1And2-KeyTripleDES-CBC',
297
+
'1.2.840.113549.1.12.1.5' => 'pbeWithSHA1And128BitRC2-CBC',
298
+
'1.2.840.113549.1.12.1.6' => 'pbeWithSHA1And40BitRC2-CBC',
299
+
'1.2.840.113549.1.12.10' => 'pkcs12-Version1',
300
+
'1.2.840.113549.1.12.10.1' => 'pkcs12-BagIds',
301
+
'1.2.840.113549.1.12.10.1.1' => 'keyBag',
302
+
'1.2.840.113549.1.12.10.1.2' => 'pkcs8ShroudedKeyBag',
303
+
'1.2.840.113549.1.12.10.1.3' => 'certBag',
304
+
'1.2.840.113549.1.12.10.1.4' => 'crlBag',
305
+
'1.2.840.113549.1.12.10.1.5' => 'secretBag',
306
+
'1.2.840.113549.1.12.10.1.6' => 'safeContentsBag',
307
+
'1.2.840.113549.2.2' => 'md2',
308
+
'1.2.840.113549.2.4' => 'md4',
309
+
'1.2.840.113549.2.5' => 'md5',
310
+
'1.2.840.113549.2.6' => 'hmacWithMD5',
311
+
'1.2.840.113549.2.7' => 'hmacWithSHA1',
312
+
'1.2.840.113549.2.8' => 'hmacWithSHA224',
313
+
'1.2.840.113549.2.9' => 'hmacWithSHA256',
314
+
'1.2.840.113549.2.10' => 'hmacWithSHA384',
315
+
'1.2.840.113549.2.11' => 'hmacWithSHA512',
316
+
'1.2.840.113549.3.2' => 'rc2-cbc',
317
+
'1.2.840.113549.3.4' => 'rc4',
318
+
'1.2.840.113549.3.7' => 'des-ede3-cbc',
319
+
'1.2.840.113549.3.8' => 'rc5-cbc',
320
+
'1.3.6.1.4.1.311.2.1.14' => 'Microsoft Extension Request',
321
+
'1.3.6.1.4.1.311.2.1.21' => 'Microsoft Individual Code Signing',
322
+
'1.3.6.1.4.1.311.2.1.22' => 'Microsoft Commercial Code Signing',
323
+
'1.3.6.1.4.1.311.10.3.1' => 'Microsoft Trust List Signing',
324
+
'1.3.6.1.4.1.311.10.3.3' => 'Microsoft Server Gated Crypto',
325
+
'1.3.6.1.4.1.311.10.3.4' => 'Microsoft Encrypted File System',
326
+
'1.3.6.1.4.1.311.20.2.2' => 'Microsoft Smartcardlogin',
327
+
'1.3.6.1.4.1.311.20.2.3' => 'Microsoft Universal Principal Name',
328
+
'1.3.6.1.4.1.188.7.1.1.2' => 'idea-cbc',
329
+
'1.3.6.1.4.1.3029.1.2' => 'bf-cbc',
330
+
'1.3.6.1.5.5.7' => 'PKIX',
331
+
'1.3.6.1.5.5.7.0' => 'id-pkix-mod',
332
+
'1.3.6.1.5.5.7.1' => 'id-pe',
333
+
'1.3.6.1.5.5.7.2' => 'id-qt',
334
+
'1.3.6.1.5.5.7.3' => 'id-kp',
335
+
'1.3.6.1.5.5.7.4' => 'id-it',
336
+
'1.3.6.1.5.5.7.5' => 'id-pkip',
337
+
'1.3.6.1.5.5.7.6' => 'id-alg',
338
+
'1.3.6.1.5.5.7.7' => 'id-cmc',
339
+
'1.3.6.1.5.5.7.8' => 'id-on',
340
+
'1.3.6.1.5.5.7.9' => 'id-pda',
341
+
'1.3.6.1.5.5.7.10' => 'id-aca',
342
+
'1.3.6.1.5.5.7.11' => 'id-qcs',
343
+
'1.3.6.1.5.5.7.12' => 'id-cct',
344
+
'1.3.6.1.5.5.7.21' => 'id-ppl',
345
+
'1.3.6.1.5.5.7.48' => 'id-ad',
346
+
'1.3.6.1.5.5.7.0.1' => 'id-pkix1-explicit-88',
347
+
'1.3.6.1.5.5.7.0.2' => 'id-pkix1-implicit-88',
348
+
'1.3.6.1.5.5.7.0.3' => 'id-pkix1-explicit-93',
349
+
'1.3.6.1.5.5.7.0.4' => 'id-pkix1-implicit-93',
350
+
'1.3.6.1.5.5.7.0.5' => 'id-mod-crmf',
351
+
'1.3.6.1.5.5.7.0.6' => 'id-mod-cmc',
352
+
'1.3.6.1.5.5.7.0.7' => 'id-mod-kea-profile-88',
353
+
'1.3.6.1.5.5.7.0.8' => 'id-mod-kea-profile-93',
354
+
'1.3.6.1.5.5.7.0.9' => 'id-mod-cmp',
355
+
'1.3.6.1.5.5.7.0.10' => 'id-mod-qualified-cert-88',
356
+
'1.3.6.1.5.5.7.0.11' => 'id-mod-qualified-cert-93',
357
+
'1.3.6.1.5.5.7.0.12' => 'id-mod-attribute-cert',
358
+
'1.3.6.1.5.5.7.0.13' => 'id-mod-timestamp-protocol',
359
+
'1.3.6.1.5.5.7.0.14' => 'id-mod-ocsp',
360
+
'1.3.6.1.5.5.7.0.15' => 'id-mod-dvcs',
361
+
'1.3.6.1.5.5.7.0.16' => 'id-mod-cmp2000',
362
+
'1.3.6.1.5.5.7.1.1' => 'Authority Information Access',
363
+
'1.3.6.1.5.5.7.1.2' => 'Biometric Info',
364
+
'1.3.6.1.5.5.7.1.3' => 'qcStatements',
365
+
'1.3.6.1.5.5.7.1.4' => 'ac-auditEntity',
366
+
'1.3.6.1.5.5.7.1.5' => 'ac-targeting',
367
+
'1.3.6.1.5.5.7.1.6' => 'aaControls',
368
+
'1.3.6.1.5.5.7.1.7' => 'sbgp-ipAddrBlock',
369
+
'1.3.6.1.5.5.7.1.8' => 'sbgp-autonomousSysNum',
370
+
'1.3.6.1.5.5.7.1.9' => 'sbgp-routerIdentifier',
371
+
'1.3.6.1.5.5.7.1.10' => 'ac-proxying',
372
+
'1.3.6.1.5.5.7.1.11' => 'Subject Information Access',
373
+
'1.3.6.1.5.5.7.1.14' => 'Proxy Certificate Information',
374
+
'1.3.6.1.5.5.7.2.1' => 'Policy Qualifier CPS',
375
+
'1.3.6.1.5.5.7.2.2' => 'Policy Qualifier User Notice',
376
+
'1.3.6.1.5.5.7.2.3' => 'textNotice',
377
+
'1.3.6.1.5.5.7.3.1' => 'TLS Web Server Authentication',
378
+
'1.3.6.1.5.5.7.3.2' => 'TLS Web Client Authentication',
379
+
'1.3.6.1.5.5.7.3.3' => 'Code Signing',
380
+
'1.3.6.1.5.5.7.3.4' => 'E-mail Protection',
381
+
'1.3.6.1.5.5.7.3.5' => 'IPSec End System',
382
+
'1.3.6.1.5.5.7.3.6' => 'IPSec Tunnel',
383
+
'1.3.6.1.5.5.7.3.7' => 'IPSec User',
384
+
'1.3.6.1.5.5.7.3.8' => 'Time Stamping',
385
+
'1.3.6.1.5.5.7.3.9' => 'OCSP Signing',
386
+
'1.3.6.1.5.5.7.3.10' => 'dvcs',
387
+
'1.3.6.1.5.5.7.4.1' => 'id-it-caProtEncCert',
388
+
'1.3.6.1.5.5.7.4.2' => 'id-it-signKeyPairTypes',
389
+
'1.3.6.1.5.5.7.4.3' => 'id-it-encKeyPairTypes',
390
+
'1.3.6.1.5.5.7.4.4' => 'id-it-preferredSymmAlg',
391
+
'1.3.6.1.5.5.7.4.5' => 'id-it-caKeyUpdateInfo',
392
+
'1.3.6.1.5.5.7.4.6' => 'id-it-currentCRL',
393
+
'1.3.6.1.5.5.7.4.7' => 'id-it-unsupportedOIDs',
394
+
'1.3.6.1.5.5.7.4.8' => 'id-it-subscriptionRequest',
395
+
'1.3.6.1.5.5.7.4.9' => 'id-it-subscriptionResponse',
396
+
'1.3.6.1.5.5.7.4.10' => 'id-it-keyPairParamReq',
397
+
'1.3.6.1.5.5.7.4.11' => 'id-it-keyPairParamRep',
398
+
'1.3.6.1.5.5.7.4.12' => 'id-it-revPassphrase',
399
+
'1.3.6.1.5.5.7.4.13' => 'id-it-implicitConfirm',
400
+
'1.3.6.1.5.5.7.4.14' => 'id-it-confirmWaitTime',
401
+
'1.3.6.1.5.5.7.4.15' => 'id-it-origPKIMessage',
402
+
'1.3.6.1.5.5.7.4.16' => 'id-it-suppLangTags',
403
+
'1.3.6.1.5.5.7.5.1' => 'id-regCtrl',
404
+
'1.3.6.1.5.5.7.5.2' => 'id-regInfo',
405
+
'1.3.6.1.5.5.7.5.1.1' => 'id-regCtrl-regToken',
406
+
'1.3.6.1.5.5.7.5.1.2' => 'id-regCtrl-authenticator',
407
+
'1.3.6.1.5.5.7.5.1.3' => 'id-regCtrl-pkiPublicationInfo',
408
+
'1.3.6.1.5.5.7.5.1.4' => 'id-regCtrl-pkiArchiveOptions',
409
+
'1.3.6.1.5.5.7.5.1.5' => 'id-regCtrl-oldCertID',
410
+
'1.3.6.1.5.5.7.5.1.6' => 'id-regCtrl-protocolEncrKey',
411
+
'1.3.6.1.5.5.7.5.2.1' => 'id-regInfo-utf8Pairs',
412
+
'1.3.6.1.5.5.7.5.2.2' => 'id-regInfo-certReq',
413
+
'1.3.6.1.5.5.7.6.1' => 'id-alg-des40',
414
+
'1.3.6.1.5.5.7.6.2' => 'id-alg-noSignature',
415
+
'1.3.6.1.5.5.7.6.3' => 'id-alg-dh-sig-hmac-sha1',
416
+
'1.3.6.1.5.5.7.6.4' => 'id-alg-dh-pop',
417
+
'1.3.6.1.5.5.7.7.1' => 'id-cmc-statusInfo',
418
+
'1.3.6.1.5.5.7.7.2' => 'id-cmc-identification',
419
+
'1.3.6.1.5.5.7.7.3' => 'id-cmc-identityProof',
420
+
'1.3.6.1.5.5.7.7.4' => 'id-cmc-dataReturn',
421
+
'1.3.6.1.5.5.7.7.5' => 'id-cmc-transactionId',
422
+
'1.3.6.1.5.5.7.7.6' => 'id-cmc-senderNonce',
423
+
'1.3.6.1.5.5.7.7.7' => 'id-cmc-recipientNonce',
424
+
'1.3.6.1.5.5.7.7.8' => 'id-cmc-addExtensions',
425
+
'1.3.6.1.5.5.7.7.9' => 'id-cmc-encryptedPOP',
426
+
'1.3.6.1.5.5.7.7.10' => 'id-cmc-decryptedPOP',
427
+
'1.3.6.1.5.5.7.7.11' => 'id-cmc-lraPOPWitness',
428
+
'1.3.6.1.5.5.7.7.15' => 'id-cmc-getCert',
429
+
'1.3.6.1.5.5.7.7.16' => 'id-cmc-getCRL',
430
+
'1.3.6.1.5.5.7.7.17' => 'id-cmc-revokeRequest',
431
+
'1.3.6.1.5.5.7.7.18' => 'id-cmc-regInfo',
432
+
'1.3.6.1.5.5.7.7.19' => 'id-cmc-responseInfo',
433
+
'1.3.6.1.5.5.7.7.21' => 'id-cmc-queryPending',
434
+
'1.3.6.1.5.5.7.7.22' => 'id-cmc-popLinkRandom',
435
+
'1.3.6.1.5.5.7.7.23' => 'id-cmc-popLinkWitness',
436
+
'1.3.6.1.5.5.7.7.24' => 'id-cmc-confirmCertAcceptance',
437
+
'1.3.6.1.5.5.7.8.1' => 'id-on-personalData',
438
+
'1.3.6.1.5.5.7.8.3' => 'Permanent Identifier',
439
+
'1.3.6.1.5.5.7.9.1' => 'id-pda-dateOfBirth',
440
+
'1.3.6.1.5.5.7.9.2' => 'id-pda-placeOfBirth',
441
+
'1.3.6.1.5.5.7.9.3' => 'id-pda-gender',
442
+
'1.3.6.1.5.5.7.9.4' => 'id-pda-countryOfCitizenship',
443
+
'1.3.6.1.5.5.7.9.5' => 'id-pda-countryOfResidence',
444
+
'1.3.6.1.5.5.7.10.1' => 'id-aca-authenticationInfo',
445
+
'1.3.6.1.5.5.7.10.2' => 'id-aca-accessIdentity',
446
+
'1.3.6.1.5.5.7.10.3' => 'id-aca-chargingIdentity',
447
+
'1.3.6.1.5.5.7.10.4' => 'id-aca-group',
448
+
'1.3.6.1.5.5.7.10.5' => 'id-aca-role',
449
+
'1.3.6.1.5.5.7.10.6' => 'id-aca-encAttrs',
450
+
'1.3.6.1.5.5.7.11.1' => 'id-qcs-pkixQCSyntax-v1',
451
+
'1.3.6.1.5.5.7.12.1' => 'id-cct-crs',
452
+
'1.3.6.1.5.5.7.12.2' => 'id-cct-PKIData',
453
+
'1.3.6.1.5.5.7.12.3' => 'id-cct-PKIResponse',
454
+
'1.3.6.1.5.5.7.21.0' => 'Any language',
455
+
'1.3.6.1.5.5.7.21.1' => 'Inherit all',
456
+
'1.3.6.1.5.5.7.21.2' => 'Independent',
457
+
'1.3.6.1.5.5.7.48.1' => 'OCSP',
458
+
'1.3.6.1.5.5.7.48.2' => 'CA Issuers',
459
+
'1.3.6.1.5.5.7.48.3' => 'AD Time Stamping',
460
+
'1.3.6.1.5.5.7.48.4' => 'ad dvcs',
461
+
'1.3.6.1.5.5.7.48.5' => 'CA Repository',
462
+
'1.3.6.1.5.5.7.48.1.1' => 'Basic OCSP Response',
463
+
'1.3.6.1.5.5.7.48.1.2' => 'OCSP Nonce',
464
+
'1.3.6.1.5.5.7.48.1.3' => 'OCSP CRL ID',
465
+
'1.3.6.1.5.5.7.48.1.4' => 'Acceptable OCSP Responses',
466
+
'1.3.6.1.5.5.7.48.1.5' => 'OCSP No Check',
467
+
'1.3.6.1.5.5.7.48.1.6' => 'OCSP Archive Cutoff',
468
+
'1.3.6.1.5.5.7.48.1.7' => 'OCSP Service Locator',
469
+
'1.3.6.1.5.5.7.48.1.8' => 'Extended OCSP Status',
470
+
'1.3.6.1.5.5.7.48.1.9' => 'id-pkix-OCSP_valid',
471
+
'1.3.6.1.5.5.7.48.1.10' => 'id-pkix-OCSP_path',
472
+
'1.3.6.1.5.5.7.48.1.11' => 'Trust Root',
473
+
'1.3.14.3.2' => 'algorithm',
474
+
'1.3.14.3.2.3' => 'md5WithRSA',
475
+
'1.3.14.3.2.6' => 'des-ecb',
476
+
'1.3.14.3.2.7' => 'des-cbc',
477
+
'1.3.14.3.2.8' => 'des-ofb',
478
+
'1.3.14.3.2.9' => 'des-cfb',
479
+
'1.3.14.3.2.11' => 'rsaSignature',
480
+
'1.3.14.3.2.12' => 'dsaEncryption-old',
481
+
'1.3.14.3.2.13' => 'dsaWithSHA',
482
+
'1.3.14.3.2.15' => 'shaWithRSAEncryption',
483
+
'1.3.14.3.2.17' => 'des-ede',
484
+
'1.3.14.3.2.18' => 'sha',
485
+
'1.3.14.3.2.26' => 'sha1',
486
+
'1.3.14.3.2.27' => 'dsaWithSHA1-old',
487
+
'1.3.14.3.2.29' => 'sha1WithRSA',
488
+
'1.3.36.3.2.1' => 'ripemd160',
489
+
'1.3.36.3.3.1.2' => 'ripemd160WithRSA',
490
+
'1.3.101.1.4.1' => 'Strong Extranet ID',
491
+
'2.5' => 'directory services (X.500)',
492
+
'2.5.4' => 'X509',
493
+
'2.5.4.3' => 'commonName',
494
+
'2.5.4.4' => 'surname',
495
+
'2.5.4.5' => 'serialNumber',
496
+
'2.5.4.6' => 'countryName',
497
+
'2.5.4.7' => 'localityName',
498
+
'2.5.4.8' => 'stateOrProvinceName',
499
+
'2.5.4.9' => 'streetAddress',
500
+
'2.5.4.10' => 'organizationName',
501
+
'2.5.4.11' => 'organizationalUnitName',
502
+
'2.5.4.12' => 'title',
503
+
'2.5.4.13' => 'description',
504
+
'2.5.4.14' => 'searchGuide',
505
+
'2.5.4.15' => 'businessCategory',
506
+
'2.5.4.16' => 'postalAddress',
507
+
'2.5.4.17' => 'postalCode',
508
+
'2.5.4.18' => 'postOfficeBox',
509
+
'2.5.4.19' => 'physicalDeliveryOfficeName',
510
+
'2.5.4.20' => 'telephoneNumber',
511
+
'2.5.4.21' => 'telexNumber',
512
+
'2.5.4.22' => 'teletexTerminalIdentifier',
513
+
'2.5.4.23' => 'facsimileTelephoneNumber',
514
+
'2.5.4.24' => 'x121Address',
515
+
'2.5.4.25' => 'internationaliSDNNumber',
516
+
'2.5.4.26' => 'registeredAddress',
517
+
'2.5.4.27' => 'destinationIndicator',
518
+
'2.5.4.28' => 'preferredDeliveryMethod',
519
+
'2.5.4.29' => 'presentationAddress',
520
+
'2.5.4.30' => 'supportedApplicationContext',
521
+
'2.5.4.31' => 'member',
522
+
'2.5.4.32' => 'owner',
523
+
'2.5.4.33' => 'roleOccupant',
524
+
'2.5.4.34' => 'seeAlso',
525
+
'2.5.4.35' => 'userPassword',
526
+
'2.5.4.36' => 'userCertificate',
527
+
'2.5.4.37' => 'cACertificate',
528
+
'2.5.4.38' => 'authorityRevocationList',
529
+
'2.5.4.39' => 'certificateRevocationList',
530
+
'2.5.4.40' => 'crossCertificatePair',
531
+
'2.5.4.41' => 'name',
532
+
'2.5.4.42' => 'givenName',
533
+
'2.5.4.43' => 'initials',
534
+
'2.5.4.44' => 'generationQualifier',
535
+
'2.5.4.45' => 'x500UniqueIdentifier',
536
+
'2.5.4.46' => 'dnQualifier',
537
+
'2.5.4.47' => 'enhancedSearchGuide',
538
+
'2.5.4.48' => 'protocolInformation',
539
+
'2.5.4.49' => 'distinguishedName',
540
+
'2.5.4.50' => 'uniqueMember',
541
+
'2.5.4.51' => 'houseIdentifier',
542
+
'2.5.4.52' => 'supportedAlgorithms',
543
+
'2.5.4.53' => 'deltaRevocationList',
544
+
'2.5.4.54' => 'dmdName',
545
+
'2.5.4.65' => 'pseudonym',
546
+
'2.5.4.72' => 'role',
547
+
'2.5.8' => 'directory services - algorithms',
548
+
'2.5.8.1.1' => 'rsa',
549
+
'2.5.8.3.100' => 'mdc2WithRSA',
550
+
'2.5.8.3.101' => 'mdc2',
551
+
'2.5.29' => 'id-ce',
552
+
'2.5.29.9' => 'X509v3 Subject Directory Attributes',
553
+
'2.5.29.14' => 'X509v3 Subject Key Identifier',
554
+
'2.5.29.15' => 'X509v3 Key Usage',
555
+
'2.5.29.16' => 'X509v3 Private Key Usage Period',
556
+
'2.5.29.17' => 'X509v3 Subject Alternative Name',
557
+
'2.5.29.18' => 'X509v3 Issuer Alternative Name',
558
+
'2.5.29.19' => 'X509v3 Basic Constraints',
559
+
'2.5.29.20' => 'X509v3 CRL Number',
560
+
'2.5.29.21' => 'X509v3 CRL Reason Code',
561
+
'2.5.29.24' => 'Invalidity Date',
562
+
'2.5.29.27' => 'X509v3 Delta CRL Indicator',
563
+
'2.5.29.28' => 'X509v3 Issuing Distribution Point',
564
+
'2.5.29.29' => 'X509v3 Certificate Issuer',
565
+
'2.5.29.30' => 'X509v3 Name Constraints',
566
+
'2.5.29.31' => 'X509v3 CRL Distribution Points',
567
+
'2.5.29.32' => 'X509v3 Certificate Policies',
568
+
'2.5.29.32.0' => 'X509v3 Any Policy',
569
+
'2.5.29.33' => 'X509v3 Policy Mappings',
570
+
'2.5.29.35' => 'X509v3 Authority Key Identifier',
571
+
'2.5.29.36' => 'X509v3 Policy Constraints',
572
+
'2.5.29.37' => 'X509v3 Extended Key Usage',
573
+
'2.5.29.46' => 'X509v3 Freshest CRL',
574
+
'2.5.29.54' => 'X509v3 Inhibit Any Policy',
575
+
'2.5.29.55' => 'X509v3 AC Targeting',
576
+
'2.5.29.56' => 'X509v3 No Revocation Available',
577
+
'2.5.29.37.0' => 'Any Extended Key Usage',
578
+
'2.16.840.1.113730' => 'Netscape Communications Corp.',
579
+
'2.16.840.1.113730.1' => 'Netscape Certificate Extension',
580
+
'2.16.840.1.113730.2' => 'Netscape Data Type',
581
+
'2.16.840.1.113730.1.1' => 'Netscape Cert Type',
582
+
'2.16.840.1.113730.1.2' => 'Netscape Base Url',
583
+
'2.16.840.1.113730.1.3' => 'Netscape Revocation Url',
584
+
'2.16.840.1.113730.1.4' => 'Netscape CA Revocation Url',
585
+
'2.16.840.1.113730.1.7' => 'Netscape Renewal Url',
586
+
'2.16.840.1.113730.1.8' => 'Netscape CA Policy Url',
587
+
'2.16.840.1.113730.1.12' => 'Netscape SSL Server Name',
588
+
'2.16.840.1.113730.1.13' => 'Netscape Comment',
589
+
'2.16.840.1.113730.2.5' => 'Netscape Certificate Sequence',
590
+
'2.16.840.1.113730.4.1' => 'Netscape Server Gated Crypto',
591
+
'1.3.6' => 'dod',
592
+
'1.3.6.1' => 'iana',
593
+
'1.3.6.1.1' => 'Directory',
594
+
'1.3.6.1.2' => 'Management',
595
+
'1.3.6.1.3' => 'Experimental',
596
+
'1.3.6.1.4' => 'Private',
597
+
'1.3.6.1.5' => 'Security',
598
+
'1.3.6.1.6' => 'SNMPv2',
599
+
'1.3.6.1.7' => 'Mail',
600
+
'1.3.6.1.4.1' => 'Enterprises',
601
+
'1.3.6.1.4.1.1466.344' => 'dcObject',
602
+
'1.2.840.113549.1.9.16.3.8' => 'zlib compression',
603
+
'2.16.840.1.101.3' => 'csor',
604
+
'2.16.840.1.101.3.4' => 'nistAlgorithms',
605
+
'2.16.840.1.101.3.4.1' => 'aes',
606
+
'2.16.840.1.101.3.4.1.1' => 'aes-128-ecb',
607
+
'2.16.840.1.101.3.4.1.2' => 'aes-128-cbc',
608
+
'2.16.840.1.101.3.4.1.3' => 'aes-128-ofb',
609
+
'2.16.840.1.101.3.4.1.4' => 'aes-128-cfb',
610
+
'2.16.840.1.101.3.4.1.5' => 'id-aes128-wrap',
611
+
'2.16.840.1.101.3.4.1.6' => 'aes-128-gcm',
612
+
'2.16.840.1.101.3.4.1.7' => 'aes-128-ccm',
613
+
'2.16.840.1.101.3.4.1.8' => 'id-aes128-wrap-pad',
614
+
'2.16.840.1.101.3.4.1.21' => 'aes-192-ecb',
615
+
'2.16.840.1.101.3.4.1.22' => 'aes-192-cbc',
616
+
'2.16.840.1.101.3.4.1.23' => 'aes-192-ofb',
617
+
'2.16.840.1.101.3.4.1.24' => 'aes-192-cfb',
618
+
'2.16.840.1.101.3.4.1.25' => 'id-aes192-wrap',
619
+
'2.16.840.1.101.3.4.1.26' => 'aes-192-gcm',
620
+
'2.16.840.1.101.3.4.1.27' => 'aes-192-ccm',
621
+
'2.16.840.1.101.3.4.1.28' => 'id-aes192-wrap-pad',
622
+
'2.16.840.1.101.3.4.1.41' => 'aes-256-ecb',
623
+
'2.16.840.1.101.3.4.1.42' => 'aes-256-cbc',
624
+
'2.16.840.1.101.3.4.1.43' => 'aes-256-ofb',
625
+
'2.16.840.1.101.3.4.1.44' => 'aes-256-cfb',
626
+
'2.16.840.1.101.3.4.1.45' => 'id-aes256-wrap',
627
+
'2.16.840.1.101.3.4.1.46' => 'aes-256-gcm',
628
+
'2.16.840.1.101.3.4.1.47' => 'aes-256-ccm',
629
+
'2.16.840.1.101.3.4.1.48' => 'id-aes256-wrap-pad',
630
+
'2.16.840.1.101.3.4.2' => 'nist_hashalgs',
631
+
'2.16.840.1.101.3.4.2.1' => 'sha256',
632
+
'2.16.840.1.101.3.4.2.2' => 'sha384',
633
+
'2.16.840.1.101.3.4.2.3' => 'sha512',
634
+
'2.16.840.1.101.3.4.2.4' => 'sha224',
635
+
'2.16.840.1.101.3.4.3' => 'dsa_with_sha2',
636
+
'2.16.840.1.101.3.4.3.1' => 'dsa_with_SHA224',
637
+
'2.16.840.1.101.3.4.3.2' => 'dsa_with_SHA256',
638
+
'2.5.29.23' => 'Hold Instruction Code',
639
+
'0.9' => 'data',
640
+
'0.9.2342' => 'pss',
641
+
'0.9.2342.19200300' => 'ucl',
642
+
'0.9.2342.19200300.100' => 'pilot',
643
+
'0.9.2342.19200300.100.1' => 'pilotAttributeType',
644
+
'0.9.2342.19200300.100.3' => 'pilotAttributeSyntax',
645
+
'0.9.2342.19200300.100.4' => 'pilotObjectClass',
646
+
'0.9.2342.19200300.100.10' => 'pilotGroups',
647
+
'2.23.42' => 'Secure Electronic Transactions',
648
+
'2.23.42.0' => 'content types',
649
+
'2.23.42.1' => 'message extensions',
650
+
'2.23.42.3' => 'set-attr',
651
+
'2.23.42.5' => 'set-policy',
652
+
'2.23.42.7' => 'certificate extensions',
653
+
'2.23.42.8' => 'set-brand',
654
+
'2.23.42.0.0' => 'setct-PANData',
655
+
'2.23.42.0.1' => 'setct-PANToken',
656
+
'2.23.42.0.2' => 'setct-PANOnly',
657
+
'2.23.42.0.3' => 'setct-OIData',
658
+
'2.23.42.0.4' => 'setct-PI',
659
+
'2.23.42.0.5' => 'setct-PIData',
660
+
'2.23.42.0.6' => 'setct-PIDataUnsigned',
661
+
'2.23.42.0.7' => 'setct-HODInput',
662
+
'2.23.42.0.8' => 'setct-AuthResBaggage',
663
+
'2.23.42.0.9' => 'setct-AuthRevReqBaggage',
664
+
'2.23.42.0.10' => 'setct-AuthRevResBaggage',
665
+
'2.23.42.0.11' => 'setct-CapTokenSeq',
666
+
'2.23.42.0.12' => 'setct-PInitResData',
667
+
'2.23.42.0.13' => 'setct-PI-TBS',
668
+
'2.23.42.0.14' => 'setct-PResData',
669
+
'2.23.42.0.16' => 'setct-AuthReqTBS',
670
+
'2.23.42.0.17' => 'setct-AuthResTBS',
671
+
'2.23.42.0.18' => 'setct-AuthResTBSX',
672
+
'2.23.42.0.19' => 'setct-AuthTokenTBS',
673
+
'2.23.42.0.20' => 'setct-CapTokenData',
674
+
'2.23.42.0.21' => 'setct-CapTokenTBS',
675
+
'2.23.42.0.22' => 'setct-AcqCardCodeMsg',
676
+
'2.23.42.0.23' => 'setct-AuthRevReqTBS',
677
+
'2.23.42.0.24' => 'setct-AuthRevResData',
678
+
'2.23.42.0.25' => 'setct-AuthRevResTBS',
679
+
'2.23.42.0.26' => 'setct-CapReqTBS',
680
+
'2.23.42.0.27' => 'setct-CapReqTBSX',
681
+
'2.23.42.0.28' => 'setct-CapResData',
682
+
'2.23.42.0.29' => 'setct-CapRevReqTBS',
683
+
'2.23.42.0.30' => 'setct-CapRevReqTBSX',
684
+
'2.23.42.0.31' => 'setct-CapRevResData',
685
+
'2.23.42.0.32' => 'setct-CredReqTBS',
686
+
'2.23.42.0.33' => 'setct-CredReqTBSX',
687
+
'2.23.42.0.34' => 'setct-CredResData',
688
+
'2.23.42.0.35' => 'setct-CredRevReqTBS',
689
+
'2.23.42.0.36' => 'setct-CredRevReqTBSX',
690
+
'2.23.42.0.37' => 'setct-CredRevResData',
691
+
'2.23.42.0.38' => 'setct-PCertReqData',
692
+
'2.23.42.0.39' => 'setct-PCertResTBS',
693
+
'2.23.42.0.40' => 'setct-BatchAdminReqData',
694
+
'2.23.42.0.41' => 'setct-BatchAdminResData',
695
+
'2.23.42.0.42' => 'setct-CardCInitResTBS',
696
+
'2.23.42.0.43' => 'setct-MeAqCInitResTBS',
697
+
'2.23.42.0.44' => 'setct-RegFormResTBS',
698
+
'2.23.42.0.45' => 'setct-CertReqData',
699
+
'2.23.42.0.46' => 'setct-CertReqTBS',
700
+
'2.23.42.0.47' => 'setct-CertResData',
701
+
'2.23.42.0.48' => 'setct-CertInqReqTBS',
702
+
'2.23.42.0.49' => 'setct-ErrorTBS',
703
+
'2.23.42.0.50' => 'setct-PIDualSignedTBE',
704
+
'2.23.42.0.51' => 'setct-PIUnsignedTBE',
705
+
'2.23.42.0.52' => 'setct-AuthReqTBE',
706
+
'2.23.42.0.53' => 'setct-AuthResTBE',
707
+
'2.23.42.0.54' => 'setct-AuthResTBEX',
708
+
'2.23.42.0.55' => 'setct-AuthTokenTBE',
709
+
'2.23.42.0.56' => 'setct-CapTokenTBE',
710
+
'2.23.42.0.57' => 'setct-CapTokenTBEX',
711
+
'2.23.42.0.58' => 'setct-AcqCardCodeMsgTBE',
712
+
'2.23.42.0.59' => 'setct-AuthRevReqTBE',
713
+
'2.23.42.0.60' => 'setct-AuthRevResTBE',
714
+
'2.23.42.0.61' => 'setct-AuthRevResTBEB',
715
+
'2.23.42.0.62' => 'setct-CapReqTBE',
716
+
'2.23.42.0.63' => 'setct-CapReqTBEX',
717
+
'2.23.42.0.64' => 'setct-CapResTBE',
718
+
'2.23.42.0.65' => 'setct-CapRevReqTBE',
719
+
'2.23.42.0.66' => 'setct-CapRevReqTBEX',
720
+
'2.23.42.0.67' => 'setct-CapRevResTBE',
721
+
'2.23.42.0.68' => 'setct-CredReqTBE',
722
+
'2.23.42.0.69' => 'setct-CredReqTBEX',
723
+
'2.23.42.0.70' => 'setct-CredResTBE',
724
+
'2.23.42.0.71' => 'setct-CredRevReqTBE',
725
+
'2.23.42.0.72' => 'setct-CredRevReqTBEX',
726
+
'2.23.42.0.73' => 'setct-CredRevResTBE',
727
+
'2.23.42.0.74' => 'setct-BatchAdminReqTBE',
728
+
'2.23.42.0.75' => 'setct-BatchAdminResTBE',
729
+
'2.23.42.0.76' => 'setct-RegFormReqTBE',
730
+
'2.23.42.0.77' => 'setct-CertReqTBE',
731
+
'2.23.42.0.78' => 'setct-CertReqTBEX',
732
+
'2.23.42.0.79' => 'setct-CertResTBE',
733
+
'2.23.42.0.80' => 'setct-CRLNotificationTBS',
734
+
'2.23.42.0.81' => 'setct-CRLNotificationResTBS',
735
+
'2.23.42.0.82' => 'setct-BCIDistributionTBS',
736
+
'2.23.42.1.1' => 'generic cryptogram',
737
+
'2.23.42.1.3' => 'merchant initiated auth',
738
+
'2.23.42.1.4' => 'setext-pinSecure',
739
+
'2.23.42.1.5' => 'setext-pinAny',
740
+
'2.23.42.1.7' => 'setext-track2',
741
+
'2.23.42.1.8' => 'additional verification',
742
+
'2.23.42.5.0' => 'set-policy-root',
743
+
'2.23.42.7.0' => 'setCext-hashedRoot',
744
+
'2.23.42.7.1' => 'setCext-certType',
745
+
'2.23.42.7.2' => 'setCext-merchData',
746
+
'2.23.42.7.3' => 'setCext-cCertRequired',
747
+
'2.23.42.7.4' => 'setCext-tunneling',
748
+
'2.23.42.7.5' => 'setCext-setExt',
749
+
'2.23.42.7.6' => 'setCext-setQualf',
750
+
'2.23.42.7.7' => 'setCext-PGWYcapabilities',
751
+
'2.23.42.7.8' => 'setCext-TokenIdentifier',
752
+
'2.23.42.7.9' => 'setCext-Track2Data',
753
+
'2.23.42.7.10' => 'setCext-TokenType',
754
+
'2.23.42.7.11' => 'setCext-IssuerCapabilities',
755
+
'2.23.42.3.0' => 'setAttr-Cert',
756
+
'2.23.42.3.1' => 'payment gateway capabilities',
757
+
'2.23.42.3.2' => 'setAttr-TokenType',
758
+
'2.23.42.3.3' => 'issuer capabilities',
759
+
'2.23.42.3.0.0' => 'set-rootKeyThumb',
760
+
'2.23.42.3.0.1' => 'set-addPolicy',
761
+
'2.23.42.3.2.1' => 'setAttr-Token-EMV',
762
+
'2.23.42.3.2.2' => 'setAttr-Token-B0Prime',
763
+
'2.23.42.3.3.3' => 'setAttr-IssCap-CVM',
764
+
'2.23.42.3.3.4' => 'setAttr-IssCap-T2',
765
+
'2.23.42.3.3.5' => 'setAttr-IssCap-Sig',
766
+
'2.23.42.3.3.3.1' => 'generate cryptogram',
767
+
'2.23.42.3.3.4.1' => 'encrypted track 2',
768
+
'2.23.42.3.3.4.2' => 'cleartext track 2',
769
+
'2.23.42.3.3.5.1' => 'ICC or token signature',
770
+
'2.23.42.3.3.5.2' => 'secure device signature',
771
+
'2.23.42.8.1' => 'set-brand-IATA-ATA',
772
+
'2.23.42.8.30' => 'set-brand-Diners',
773
+
'2.23.42.8.34' => 'set-brand-AmericanExpress',
774
+
'2.23.42.8.35' => 'set-brand-JCB',
775
+
'2.23.42.8.4' => 'set-brand-Visa',
776
+
'2.23.42.8.5' => 'set-brand-MasterCard',
777
+
'2.23.42.8.6011' => 'set-brand-Novus',
778
+
'1.2.840.113549.3.10' => 'des-cdmf',
779
+
'1.2.840.113549.1.1.6' => 'rsaOAEPEncryptionSET',
780
+
'1.0.10118.3.0.55' => 'whirlpool',
781
+
'1.2.643.2.2' => 'cryptopro',
782
+
'1.2.643.2.9' => 'cryptocom',
783
+
'1.2.643.2.2.3' => 'GOST R 34.11-94 with GOST R 34.10-2001',
784
+
'1.2.643.2.2.4' => 'GOST R 34.11-94 with GOST R 34.10-94',
785
+
'1.2.643.2.2.9' => 'GOST R 34.11-94',
786
+
'1.2.643.2.2.10' => 'HMAC GOST 34.11-94',
787
+
'1.2.643.2.2.19' => 'GOST R 34.10-2001',
788
+
'1.2.643.2.2.20' => 'GOST R 34.10-94',
789
+
'1.2.643.2.2.21' => 'GOST 28147-89',
790
+
'1.2.643.2.2.22' => 'GOST 28147-89 MAC',
791
+
'1.2.643.2.2.23' => 'GOST R 34.11-94 PRF',
792
+
'1.2.643.2.2.98' => 'GOST R 34.10-2001 DH',
793
+
'1.2.643.2.2.99' => 'GOST R 34.10-94 DH',
794
+
'1.2.643.2.2.14.1' => 'id-Gost28147-89-CryptoPro-KeyMeshing',
795
+
'1.2.643.2.2.14.0' => 'id-Gost28147-89-None-KeyMeshing',
796
+
'1.2.643.2.2.30.0' => 'id-GostR3411-94-TestParamSet',
797
+
'1.2.643.2.2.30.1' => 'id-GostR3411-94-CryptoProParamSet',
798
+
'1.2.643.2.2.31.0' => 'id-Gost28147-89-TestParamSet',
799
+
'1.2.643.2.2.31.1' => 'id-Gost28147-89-CryptoPro-A-ParamSet',
800
+
'1.2.643.2.2.31.2' => 'id-Gost28147-89-CryptoPro-B-ParamSet',
801
+
'1.2.643.2.2.31.3' => 'id-Gost28147-89-CryptoPro-C-ParamSet',
802
+
'1.2.643.2.2.31.4' => 'id-Gost28147-89-CryptoPro-D-ParamSet',
803
+
'1.2.643.2.2.31.5' => 'id-Gost28147-89-CryptoPro-Oscar-1-1-ParamSet',
804
+
'1.2.643.2.2.31.6' => 'id-Gost28147-89-CryptoPro-Oscar-1-0-ParamSet',
805
+
'1.2.643.2.2.31.7' => 'id-Gost28147-89-CryptoPro-RIC-1-ParamSet',
806
+
'1.2.643.2.2.32.0' => 'id-GostR3410-94-TestParamSet',
807
+
'1.2.643.2.2.32.2' => 'id-GostR3410-94-CryptoPro-A-ParamSet',
808
+
'1.2.643.2.2.32.3' => 'id-GostR3410-94-CryptoPro-B-ParamSet',
809
+
'1.2.643.2.2.32.4' => 'id-GostR3410-94-CryptoPro-C-ParamSet',
810
+
'1.2.643.2.2.32.5' => 'id-GostR3410-94-CryptoPro-D-ParamSet',
811
+
'1.2.643.2.2.33.1' => 'id-GostR3410-94-CryptoPro-XchA-ParamSet',
812
+
'1.2.643.2.2.33.2' => 'id-GostR3410-94-CryptoPro-XchB-ParamSet',
813
+
'1.2.643.2.2.33.3' => 'id-GostR3410-94-CryptoPro-XchC-ParamSet',
814
+
'1.2.643.2.2.35.0' => 'id-GostR3410-2001-TestParamSet',
815
+
'1.2.643.2.2.35.1' => 'id-GostR3410-2001-CryptoPro-A-ParamSet',
816
+
'1.2.643.2.2.35.2' => 'id-GostR3410-2001-CryptoPro-B-ParamSet',
817
+
'1.2.643.2.2.35.3' => 'id-GostR3410-2001-CryptoPro-C-ParamSet',
818
+
'1.2.643.2.2.36.0' => 'id-GostR3410-2001-CryptoPro-XchA-ParamSet',
819
+
'1.2.643.2.2.36.1' => 'id-GostR3410-2001-CryptoPro-XchB-ParamSet',
820
+
'1.2.643.2.2.20.1' => 'id-GostR3410-94-a',
821
+
'1.2.643.2.2.20.2' => 'id-GostR3410-94-aBis',
822
+
'1.2.643.2.2.20.3' => 'id-GostR3410-94-b',
823
+
'1.2.643.2.2.20.4' => 'id-GostR3410-94-bBis',
824
+
'1.2.643.2.9.1.6.1' => 'GOST 28147-89 Cryptocom ParamSet',
825
+
'1.2.643.2.9.1.5.3' => 'GOST 34.10-94 Cryptocom',
826
+
'1.2.643.2.9.1.5.4' => 'GOST 34.10-2001 Cryptocom',
827
+
'1.2.643.2.9.1.3.3' => 'GOST R 34.11-94 with GOST R 34.10-94 Cryptocom',
828
+
'1.2.643.2.9.1.3.4' => 'GOST R 34.11-94 with GOST R 34.10-2001 Cryptocom',
829
+
'1.2.643.2.9.1.8.1' => 'GOST R 3410-2001 Parameter Set Cryptocom',
830
+
'1.2.392.200011.61.1.1.1.2' => 'camellia-128-cbc',
831
+
'1.2.392.200011.61.1.1.1.3' => 'camellia-192-cbc',
832
+
'1.2.392.200011.61.1.1.1.4' => 'camellia-256-cbc',
833
+
'1.2.392.200011.61.1.1.3.2' => 'id-camellia128-wrap',
834
+
'1.2.392.200011.61.1.1.3.3' => 'id-camellia192-wrap',
835
+
'1.2.392.200011.61.1.1.3.4' => 'id-camellia256-wrap',
836
+
'0.3.4401.5' => 'ntt-ds',
837
+
'0.3.4401.5.3.1.9' => 'camellia',
838
+
'0.3.4401.5.3.1.9.1' => 'camellia-128-ecb',
839
+
'0.3.4401.5.3.1.9.3' => 'camellia-128-ofb',
840
+
'0.3.4401.5.3.1.9.4' => 'camellia-128-cfb',
841
+
'0.3.4401.5.3.1.9.6' => 'camellia-128-gcm',
842
+
'0.3.4401.5.3.1.9.7' => 'camellia-128-ccm',
843
+
'0.3.4401.5.3.1.9.9' => 'camellia-128-ctr',
844
+
'0.3.4401.5.3.1.9.10' => 'camellia-128-cmac',
845
+
'0.3.4401.5.3.1.9.21' => 'camellia-192-ecb',
846
+
'0.3.4401.5.3.1.9.23' => 'camellia-192-ofb',
847
+
'0.3.4401.5.3.1.9.24' => 'camellia-192-cfb',
848
+
'0.3.4401.5.3.1.9.26' => 'camellia-192-gcm',
849
+
'0.3.4401.5.3.1.9.27' => 'camellia-192-ccm',
850
+
'0.3.4401.5.3.1.9.29' => 'camellia-192-ctr',
851
+
'0.3.4401.5.3.1.9.30' => 'camellia-192-cmac',
852
+
'0.3.4401.5.3.1.9.41' => 'camellia-256-ecb',
853
+
'0.3.4401.5.3.1.9.43' => 'camellia-256-ofb',
854
+
'0.3.4401.5.3.1.9.44' => 'camellia-256-cfb',
855
+
'0.3.4401.5.3.1.9.46' => 'camellia-256-gcm',
856
+
'0.3.4401.5.3.1.9.47' => 'camellia-256-ccm',
857
+
'0.3.4401.5.3.1.9.49' => 'camellia-256-ctr',
858
+
'0.3.4401.5.3.1.9.50' => 'camellia-256-cmac',
859
+
'1.2.410.200004' => 'kisa',
860
+
'1.2.410.200004.1.3' => 'seed-ecb',
861
+
'1.2.410.200004.1.4' => 'seed-cbc',
862
+
'1.2.410.200004.1.5' => 'seed-cfb',
863
+
'1.2.410.200004.1.6' => 'seed-ofb',
864
+
'1.2.840.10046.2.1' => 'X9.42 DH',
865
+
'1.3.36.3.3.2.8.1.1.1' => 'brainpoolP160r1',
866
+
'1.3.36.3.3.2.8.1.1.2' => 'brainpoolP160t1',
867
+
'1.3.36.3.3.2.8.1.1.3' => 'brainpoolP192r1',
868
+
'1.3.36.3.3.2.8.1.1.4' => 'brainpoolP192t1',
869
+
'1.3.36.3.3.2.8.1.1.5' => 'brainpoolP224r1',
870
+
'1.3.36.3.3.2.8.1.1.6' => 'brainpoolP224t1',
871
+
'1.3.36.3.3.2.8.1.1.7' => 'brainpoolP256r1',
872
+
'1.3.36.3.3.2.8.1.1.8' => 'brainpoolP256t1',
873
+
'1.3.36.3.3.2.8.1.1.9' => 'brainpoolP320r1',
874
+
'1.3.36.3.3.2.8.1.1.10' => 'brainpoolP320t1',
875
+
'1.3.36.3.3.2.8.1.1.11' => 'brainpoolP384r1',
876
+
'1.3.36.3.3.2.8.1.1.12' => 'brainpoolP384t1',
877
+
'1.3.36.3.3.2.8.1.1.13' => 'brainpoolP512r1',
878
+
'1.3.36.3.3.2.8.1.1.14' => 'brainpoolP512t1',
879
+
'1.3.133.16.840.63.0' => 'x9-63-scheme',
880
+
'1.3.132.1' => 'secg-scheme',
881
+
'1.3.133.16.840.63.0.2' => 'dhSinglePass-stdDH-sha1kdf-scheme',
882
+
'1.3.132.1.11.0' => 'dhSinglePass-stdDH-sha224kdf-scheme',
883
+
'1.3.132.1.11.1' => 'dhSinglePass-stdDH-sha256kdf-scheme',
884
+
'1.3.132.1.11.2' => 'dhSinglePass-stdDH-sha384kdf-scheme',
885
+
'1.3.132.1.11.3' => 'dhSinglePass-stdDH-sha512kdf-scheme',
886
+
'1.3.133.16.840.63.0.3' => 'dhSinglePass-cofactorDH-sha1kdf-scheme',
887
+
'1.3.132.1.14.0' => 'dhSinglePass-cofactorDH-sha224kdf-scheme',
888
+
'1.3.132.1.14.1' => 'dhSinglePass-cofactorDH-sha256kdf-scheme',
889
+
'1.3.132.1.14.2' => 'dhSinglePass-cofactorDH-sha384kdf-scheme',
890
+
'1.3.132.1.14.3' => 'dhSinglePass-cofactorDH-sha512kdf-scheme',
891
+
'1.3.6.1.4.1.11129.2.4.2' => 'CT Precertificate SCTs',
892
+
'1.3.6.1.4.1.11129.2.4.3' => 'CT Precertificate Poison',
893
+
'1.3.6.1.4.1.11129.2.4.4' => 'CT Precertificate Signer',
894
+
'1.3.6.1.4.1.11129.2.4.5' => 'CT Certificate SCTs',
895
+
'1.3.6.1.4.1.311.60.2.1.1' => 'jurisdictionLocalityName',
896
+
'1.3.6.1.4.1.311.60.2.1.2' => 'jurisdictionStateOrProvinceName',
897
+
'1.3.6.1.4.1.311.60.2.1.3' => 'jurisdictionCountryName',
898
+
'1.3.6.1.4.1.11591.4.11' => 'id-scrypt',
899
+
];
900
+
901
+
if (array_key_exists($oidString, $oids)) {
902
+
return $oids[$oidString];
903
+
}
904
+
905
+
switch ($oidString) {
906
+
case self::RSA_ENCRYPTION:
907
+
return 'RSA Encryption';
908
+
case self::MD5_WITH_RSA_ENCRYPTION:
909
+
return 'MD5 with RSA Encryption';
910
+
case self::SHA1_WITH_RSA_SIGNATURE:
911
+
return 'SHA-1 with RSA Signature';
912
+
913
+
case self::PKCS9_EMAIL:
914
+
return 'PKCS #9 Email Address';
915
+
case self::PKCS9_UNSTRUCTURED_NAME:
916
+
return 'PKCS #9 Unstructured Name';
917
+
case self::PKCS9_CONTENT_TYPE:
918
+
return 'PKCS #9 Content Type';
919
+
case self::PKCS9_MESSAGE_DIGEST:
920
+
return 'PKCS #9 Message Digest';
921
+
case self::PKCS9_SIGNING_TIME:
922
+
return 'PKCS #9 Signing Time';
923
+
924
+
case self::COMMON_NAME:
925
+
return 'Common Name';
926
+
case self::SURNAME:
927
+
return 'Surname';
928
+
case self::SERIAL_NUMBER:
929
+
return 'Serial Number';
930
+
case self::COUNTRY_NAME:
931
+
return 'Country Name';
932
+
case self::LOCALITY_NAME:
933
+
return 'Locality Name';
934
+
case self::STATE_OR_PROVINCE_NAME:
935
+
return 'State or Province Name';
936
+
case self::STREET_ADDRESS:
937
+
return 'Street Address';
938
+
case self::ORGANIZATION_NAME:
939
+
return 'Organization Name';
940
+
case self::OU_NAME:
941
+
return 'Organization Unit Name';
942
+
case self::TITLE:
943
+
return 'Title';
944
+
case self::DESCRIPTION:
945
+
return 'Description';
946
+
case self::POSTAL_ADDRESS:
947
+
return 'Postal Address';
948
+
case self::POSTAL_CODE:
949
+
return 'Postal Code';
950
+
case self::AUTHORITY_REVOCATION_LIST:
951
+
return 'Authority Revocation List';
952
+
953
+
case self::CERT_EXT_SUBJECT_DIRECTORY_ATTR:
954
+
return 'Subject directory attributes';
955
+
case self::CERT_EXT_SUBJECT_KEY_IDENTIFIER:
956
+
return 'Subject key identifier';
957
+
case self::CERT_EXT_KEY_USAGE:
958
+
return 'Key usage certificate extension';
959
+
case self::CERT_EXT_PRIVATE_KEY_USAGE_PERIOD:
960
+
return 'Private key usage';
961
+
case self::CERT_EXT_SUBJECT_ALT_NAME:
962
+
return 'Subject alternative name (SAN)';
963
+
case self::CERT_EXT_ISSUER_ALT_NAME:
964
+
return 'Issuer alternative name';
965
+
case self::CERT_EXT_BASIC_CONSTRAINTS:
966
+
return 'Basic constraints';
967
+
case self::CERT_EXT_CRL_NUMBER:
968
+
return 'CRL number';
969
+
case self::CERT_EXT_REASON_CODE:
970
+
return 'Reason code';
971
+
case self::CERT_EXT_INVALIDITY_DATE:
972
+
return 'Invalidity code';
973
+
case self::CERT_EXT_DELTA_CRL_INDICATOR:
974
+
return 'Delta CRL indicator';
975
+
case self::CERT_EXT_ISSUING_DIST_POINT:
976
+
return 'Issuing distribution point';
977
+
case self::CERT_EXT_CERT_ISSUER:
978
+
return 'Certificate issuer';
979
+
case self::CERT_EXT_NAME_CONSTRAINTS:
980
+
return 'Name constraints';
981
+
case self::CERT_EXT_CRL_DISTRIBUTION_POINTS:
982
+
return 'CRL distribution points';
983
+
case self::CERT_EXT_CERT_POLICIES:
984
+
return 'Certificate policies ';
985
+
case self::CERT_EXT_AUTHORITY_KEY_IDENTIFIER:
986
+
return 'Authority key identifier';
987
+
case self::CERT_EXT_EXTENDED_KEY_USAGE:
988
+
return 'Extended key usage';
989
+
case self::AUTHORITY_INFORMATION_ACCESS:
990
+
return 'Certificate Authority Information Access (AIA)';
991
+
992
+
default:
993
+
if ($loadFromWeb) {
994
+
return self::loadFromWeb($oidString);
995
+
} else {
996
+
return $oidString;
997
+
}
998
+
}
999
+
}
1000
+
1001
+
public static function loadFromWeb($oidString)
1002
+
{
1003
+
$ch = curl_init("http://oid-info.com/get/{$oidString}");
1004
+
1005
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
1006
+
curl_setopt($ch, CURLOPT_HEADER, 0);
1007
+
1008
+
$contents = curl_exec($ch);
1009
+
curl_close($ch);
1010
+
1011
+
// This pattern needs to be updated as soon as the website layout of oid-info.com changes
1012
+
preg_match_all('#<tt>(.+)\(\d+\)</tt>#si', $contents, $oidName);
1013
+
1014
+
if (empty($oidName[1])) {
1015
+
return "{$oidString} (unknown)";
1016
+
}
1017
+
1018
+
$oidName = ucfirst(strtolower(preg_replace('/([A-Z][a-z])/', ' $1', $oidName[1][0])));
1019
+
$oidName = str_replace('-', ' ', $oidName);
1020
+
1021
+
return "{$oidName} ({$oidString})";
1022
+
}
1023
+
}
1024
+