[gnutls-devel] GnuTLS | GnuTLS parsed the '<>' symbols stored in PrintableString. (#1698)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Mon Apr 14 09:58:10 CEST 2025
One happy person created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1698
## Description of problem:
Hello Developer, ASN.1 specifies that PrintableString can only store a subset of characters from ASCII, including letters, digits, spaces, and some specific symbols: ' () + , - ./ : = ?'. However, I parsed a CRL file using GnuTLS ,and when I tried to parse this CRL using Go, I received the error "x509: invalid RDNSequence: invalid attribute value: invalid PrintableString." Could you please clarify if this is a bug?The issuer field of this CRL is ```CN=<edited>```
## 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_edited.der
## Actual results:
The issuer field is parsed as Issuer:OU=test,CN=\<edited\>,O=test,L=test,ST=test,C=CN
## Expected results:
[crl_edited.der](/uploads/9850f167dd370e764ff57bc20b33b10a/crl_edited.der)
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1698
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/20250414/02297842/attachment-0001.html>
More information about the Gnutls-devel
mailing list