<!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: #666;">
<a href="https://gitlab.com/GOODPWDCETCSZ">GOODPWDCETCSZ</a> created an issue <a href="https://gitlab.com/gnutls/gnutls/-/issues/1171">#1171</a>:
</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">GnuTLS accepts a non-CA cert with a critical ext nameConstraints. mbedTLS and wolfSSL reject it.</p>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">3.5.5, 3.6.13</p>
<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>
<p dir="auto">Ubuntu x64</p>
<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>
<ul dir="auto">
<li><code>certtool --verify --load-ca-certificate ca.pem --infile seed-5s26-174s36-353s31.pem</code></li>
</ul>
<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">certtool --verify --load-ca-certificate ./certs_related/ca.pem --infile ./certs/seed-5s26-174s36-353s31.pem</span>
<span id="LC2" class="line" lang="plaintext">Note that no verification profile was selected. In the future the medium profile will be enabled by default.</span>
<span id="LC3" class="line" lang="plaintext">Use --verify-profile low to apply the default verification of NORMAL priority string.</span>
<span id="LC4" class="line" lang="plaintext">Loaded CAs (1 available)</span>
<span id="LC5" class="line" lang="plaintext">       Subject: CN=DT-peace,OU=UNSC-peace,O=UNGA,ST=NYS,C=UN</span>
<span id="LC6" class="line" lang="plaintext">       Issuer: CN=DT,OU=UNSC,O=UNGA,ST=NYS,C=UN</span>
<span id="LC7" class="line" lang="plaintext">       Checked against: CN=DT,OU=UNSC,O=UNGA,ST=NYS,C=UN</span>
<span id="LC8" class="line" lang="plaintext">       Signature algorithm: RSA-SHA256</span>
<span id="LC9" class="line" lang="plaintext">       Output: Verified. The certificate is trusted. </span>
<span id="LC10" class="line" lang="plaintext"></span>
<span id="LC11" class="line" lang="plaintext">Chain verification output: Verified. The certificate is trusted.</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">Consistent verification results among GnuTLS and other TLS implementations.</p>
<h2 dir="auto">
<a id="user-content-attachments" class="anchor" href="#attachments" aria-hidden="true"></a>Attachments:</h2>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/ac8adb996d08147af90f484c1a02a48d/ca.zip" data-link="true" class="gfm">ca.zip</a></p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/47986e966b06f7bd1c444fe843f39c7b/seed-5s26-174s36-353s31.zip" data-link="true" class="gfm">seed-5s26-174s36-353s31.zip</a></p>

</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/1171">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/dc0dea46e1a89c797964f91719e8b0d6/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/1171"}}</script>


</p>
</div>
</body>
</html>