<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/SuhwanSong">Suhwan</a> created an issue:
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">The results (exit status & output) are incorrect when converting pem file to der.</p>
<p dir="auto">I tested GnuTLS with Libressl, openssl, and mbedtls.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used-3613" class="anchor" href="#version-of-gnutls-used-3613" aria-hidden="true"></a>Version of gnutls used: 3.6.13</h2>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<ul dir="auto">
<li>Description: Ubuntu 18.04.1 LTS</li>
<li>Release: 18.04</li>
</ul>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>build GnuTLS 3.6.13</li>
<li>run following command</li>
</ol>
<p dir="auto"><code>certtool --outder -i --infile $PoC --outfile /tmp/tmp.der</code></p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/51bec54e8e30c6460610576c9034f543/issue_973" class="gfm">issue_973</a></p>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">program : Libressl</span>
<span id="LC2" class="line" lang="plaintext">version : 3.1.0</span>
<span id="LC3" class="line" lang="plaintext">exit status : 0</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">program : openssl</span>
<span id="LC2" class="line" lang="plaintext">version : commit 031c9bd3f3e9a02fa126c7dbc47f3d934678a195</span>
<span id="LC3" class="line" lang="plaintext">exit status : 0</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">program : mbedtls</span>
<span id="LC2" class="line" lang="plaintext">version : 2.22.0</span>
<span id="LC3" class="line" lang="plaintext"> . Loading the PEM file ... ok</span>
<span id="LC4" class="line" lang="plaintext"> . Converting from PEM to DER ... ok</span>
<span id="LC5" class="line" lang="plaintext"> . Writing the DER file ... ok</span>
<span id="LC6" class="line" lang="plaintext"></span>
<span id="LC7" class="line" lang="plaintext">exit status : 0</span></code></pre>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">program : gnutls</span>
<span id="LC2" class="line" lang="plaintext">version : 3.6.13</span>
<span id="LC3" class="line" lang="plaintext"></span>
<span id="LC4" class="line" lang="plaintext">import error: Error in the certificate.</span>
<span id="LC5" class="line" lang="plaintext"></span>
<span id="LC6" class="line" lang="plaintext">exit status : 1</span></code></pre>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/973">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/-/sent_notifications/0e45d68e1093a17ac939cf7a877f0d04/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/973"}}</script>
</p>
</div>
</body>
</html>