[gnutls-devel] GnuTLS | GnuTLS reports "import error: Error in the certificate" while OpenSSL and ZCertificate don't (#986)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon May 11 15:31:52 CEST 2020




Daiki Ueno commented:


This is because `tbsCertificate.signature` doesn't match the outer `signatureAlgorithm`:
```console
certtool -i --infile cert51.pem
Setting log level to 10
|<2>| signatureAlgorithm.algorithm differs from tbsCertificate.signature.algorithm: 1.2.840.113549.1.1.5, 1.2.840.113549.1.1.11
|<3>| ASSERT: x509.c[compare_sig_algorithm]:330
|<3>| ASSERT: x509.c[gnutls_x509_crt_import]:615
|<3>| ASSERT: x509.c[gnutls_x509_crt_list_import]:3834
import error: Error in the certificate.
```

As mentioned in https://gitlab.com/gnutls/gnutls/-/issues/983#note_339128307, this is not permitted according to RFC 5280.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/986#note_340219147
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/20200511/eb4307e8/attachment.html>


More information about the Gnutls-devel mailing list