OID.php 53 KB

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