ASN1 structure implementation is missing for OID 2.5.4.17 which is PostalCode, and OID 2.5.4.41 (Name) definition

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Mar 20 12:33:21 CET 2010


Konjarla, Pavan wrote:
> Hello,
> 
> GnuTLS certtool is unable to display the correct value of Postal Code when the certificate subject contains 'Postal Code' as its one of DN fields.
> 
>  The scenario how to reproduce is as follows,
> 
> 
> 1.       Create a CSR with a DN which contains Postal Code as one of its DN attributes.
> 
> 2.       Send the CSR to any CA for test certificate.
> 
> 3.       After getting the certificate display the certificate using the certtool  with ./certtool -i -infile <certificate>  command.
> 
> 4.       Observed that the value for Postal Code is displayed something like PostalCode=#0c06343030303933 instead of a valid decimal value.
> 
> 
> To fix this problem we should add the definition for Postal Code with the corresponding OID in ASN1 structure.
> 
>  I am attaching the patch file with the feasible fix. Kindly let me know if you need any other information/clarification.

Hello and thank you for the report and fix. I have committed a fix based
on your patch. However would it be easy to you a send me a certificate
that includes the postalcode and/or name so that I can verify parsing
them right?

regards,
Nikos





More information about the Gnutls-devel mailing list