Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Table of OIDs for certificate's subject?

Is there any table where we can find all correspondences between OIDs and attributes they represent in the subject field of certificate. For example, I know that "1.3.6.1.4.1.311.20.2" means certificate's template name, "2.5.29.30" - name restrictions. Where can we find other oids especially for main attributes such as CN, C, S, L, O, OU...?

like image 750
Sergey Avatar asked Jun 24 '11 08:06

Sergey


2 Answers

A very good reference is Peter Gutmann's dumpasn1 tool. It has an extensive configuration file which is a database for many PKI related OIDs.

Alternatively OpenSSL's database of OID isn't human readable in its original or processed. But using OpenSSL functions like OBJ_nid2obj or OBJ_obj2nid in combination with BJ_nid2ln and OBJ_nid2sn you can easily make lookups.

like image 58
Mathias Brossard Avatar answered Sep 20 '22 14:09

Mathias Brossard


Found it here http://technet.microsoft.com/en-us/library/cc772812(WS.10).aspx

like image 20
Sergey Avatar answered Sep 23 '22 14:09

Sergey