OIDInfo


OIDInfo is a .NET assembly utility using P/Invoke to CryptoAPI which demonstrates how to obtain the "friendly name" associated with a dotted OID (Object Identifier). OIDs are used extensively in cryptography to represent algorithm names, certificate extensions, message attributes and other object structures.

OIDInfo takes a single argument, the dotted OID name (e.g. ) and invokes the crypt32.dll function CryptFindOIDInfo() to return a pointer to a CRYPT_OID_INFO structure. The member CRYPT_OID_INFO.pwszName is the friendly name associated with the OID.
e.g.

OIDInfo.exe 1.3.6.1.5.5.7.3.3

1.3.6.1.5.5.7.3.3
Code Signing
Some Microsoft-specific OIDs are not returned, but can be found at Object IDs Associated with Microsoft Cryptography.

C# Source


Michel I. Gallant
neutron@istar.ca