[gnutls-devel] GnuTLS | Gnutls cannot parse the Country value encoded in UTF8String. (#1676)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Mar 10 03:13:04 CET 2025


Qianxin Cheng created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1676



## Description of problem:
Hello Developer, I created a CRL file where the Country value in the issuer field is encoded in UTF8String, with the value 'US'. However, I am unable to successfully parse this Country value when processing the CRL. RFC5280 specifies that DirectoryString can be encoded either in PrintableString or UTF8String.

## Version of gnutls used:
GnuTLS 3.8.9

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Ubuntu

## How reproducible:
certtool --crl-info --inder --infile crl_file.der

## Actual results:
The issuer field is parsed as Issuer: OU=test, CN=test, O=test, L=test, ST=test, C=#0c025553.

## Expected results:
The issuer field should be parsed as Issuer: OU=test, CN=test, O=test, L=test, ST=test, C=US.[crl_file.der](/uploads/0d76de603cea7216532e93b612d8f219/crl_file.der)

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1676
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250310/5e24eb09/attachment-0001.html>


More information about the Gnutls-devel mailing list