[gnutls-devel] GnuTLS | Incorrect results returned when converting pem file to der (#973)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Apr 19 08:19:09 CEST 2020



Suhwan created an issue: https://gitlab.com/gnutls/gnutls/-/issues/973



## Description of problem:
The results (exit status & output) are incorrect when converting pem file to der.

I tested GnuTLS with Libressl, openssl, and mbedtls.

## Version of gnutls used: 3.6.13

## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
  - Description: Ubuntu 18.04.1 LTS
  - Release: 18.04

## How reproducible:

Steps to Reproduce:
1. build GnuTLS 3.6.13
2. run following command

`certtool --outder -i --infile $PoC --outfile /tmp/tmp.der`

[issue_973](/uploads/51bec54e8e30c6460610576c9034f543/issue_973)
## Actual results:
```
program : Libressl
version : 3.1.0
exit status : 0
```
```
program : openssl
version : commit 031c9bd3f3e9a02fa126c7dbc47f3d934678a195
exit status : 0
```
```
program : mbedtls
version : 2.22.0
  . Loading the PEM file ... ok
  . Converting from PEM to DER ... ok
  . Writing the DER file ... ok

exit status : 0
```
```
program : gnutls
version : 3.6.13

import error: Error in the certificate.

exit status : 1
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/973
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/20200419/8af2cb7e/attachment-0001.html>


More information about the Gnutls-devel mailing list