Display name Certificate OID - Windows

537 Views Asked by At

I installed a certificate in two windows machines (both windows 7 x86) and when I access the properties of this certificate by certmgr, the "Subject Alternative Name" section are different for both machines. The one that contains "2.16.76.1.3.3" is correct, is the oficial OID for "CNPJ". I tried to export the certificate of the "right" machine and doesn't work. I don't know if is there a way to map the OID to "common" names, but I need the original OID. The certificate installed in the two machines is from the same file (.pfx). Certificate details are below:

"wrong" properties

"right" properties

1

There are 1 best solutions below

2
On

If the certificate came from the same source (the same PFX) then the Subject Alternative Name entry is probably the same. The difference is one of the two computers has had 2.16.76.1.3.3 registered with a name (CNPJ), and the other hasn't.

CryptRegisterOIDInfo can be used to register name/value (and other data) mappings for an OID; presumably the "right" machine had that called by some software at some point to register CNPJ.

This is just a UI display issue (Windows CertUI uses friendly names when it can, dotted-decimal OIDs otherwise).