<!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 style="color: #777777;">
<a href="https://gitlab.com/libbin">libbin</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1144#note_481434187">commented</a>:
</p>
<div style="">
<p dir="auto"><strong>Similar result in MacOS</strong></p>
<p dir="auto">Severity: breaks basic gnutls operation (--generate-self-signed)</p>
<p dir="auto">Environment:
MacOS: 11.1 (20C69)
Brew: brew install gnutls</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">$ gnutls-certtool --generate-privkey --outfile key.pem -d3 1>/dev/null</span>
<span id="LC2" class="line" lang="plaintext">Generating a 3072 bit RSA private key...</span>
<span id="LC3" class="line" lang="plaintext">|<3>| ASSERT: privkey.c[gnutls_x509_privkey_get_seed]:1925</span>
<span id="LC4" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC5" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC6" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC7" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC8" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC9" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC10" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC11" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC12" class="line" lang="plaintext">|<3>| ASSERT: privkey.c[gnutls_x509_privkey_get_seed]:1925</span>
<span id="LC13" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC14" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC15" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC16" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC17" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC18" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC19" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC20" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC21" class="line" lang="plaintext">|<3>| ASSERT: privkey.c[gnutls_x509_privkey_get_seed]:1925</span>
<span id="LC22" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC23" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC24" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC25" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC26" class="line" lang="plaintext"></span>
<span id="LC27" class="line" lang="plaintext">$ gnutls-certtool --generate-self-signed --load-privkey key.pem --template foo --outfile cert.pem -d3 1>/dev/null</span>
<span id="LC28" class="line" lang="plaintext">Generating a self signed certificate...</span>
<span id="LC29" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC30" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC31" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC32" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC33" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC34" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC35" class="line" lang="plaintext">|<3>| ASSERT: x509.c[gnutls_x509_crt_get_issuer_unique_id]:3995</span>
<span id="LC36" class="line" lang="plaintext">|<3>| ASSERT: x509.c[gnutls_x509_crt_get_subject_unique_id]:3945</span>
<span id="LC37" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC38" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC39" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC40" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC41" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC42" class="line" lang="plaintext">|<3>| ASSERT: mpi.c[wrap_nettle_mpi_print]:60</span>
<span id="LC43" class="line" lang="plaintext">X.509 Certificate Information:</span>
<span id="LC44" class="line" lang="plaintext"><DELETED></span>
<span id="LC45" class="line" lang="plaintext">Signing certificate...</span>
<span id="LC46" class="line" lang="plaintext">|<2>| signing structure using RSA-SHA256</span>
<span id="LC47" class="line" lang="plaintext">|<3>| ASSERT: common.c[_gnutls_x509_der_encode]:855</span>
<span id="LC48" class="line" lang="plaintext">|<3>| ASSERT: sign.c[_gnutls_x509_pkix_sign]:174</span>
<span id="LC49" class="line" lang="plaintext">|<3>| ASSERT: x509_write.c[gnutls_x509_crt_privkey_sign]:1834</span>
<span id="LC50" class="line" lang="plaintext">crt_sign: ASN1 parser: Value is not valid.</span>
<span id="LC51" class="line" lang="plaintext"></span>
<span id="LC52" class="line" lang="plaintext">$ ls</span>
<span id="LC53" class="line" lang="plaintext">foo key.pem</span></code></pre>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1144#note_481434187">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/ed4e6d1c9bc0685af98bc087efbe415a/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/1144#note_481434187"}}</script>
</p>
</div>
</body>
</html>