<!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/1167">#1167</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 cert whose basicConstraints.cA==False but keyUsage.keyCertSign is set.</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-16s31-206s38.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-16s31-206s38.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">The cert should be rejectd since it has no right (it cA==False) to verify certSign (keyUsage.keyCertSign is set).</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/a1b6138e694221150409c508e44dd696/ca.zip" data-link="true" class="gfm">ca.zip</a></p>
<p dir="auto"><a href="https://gitlab.com/gnutls/gnutls/uploads/946477b3be76d26aa0f2e62ee26778d2/seed-16s31-206s38.zip" data-link="true" class="gfm">seed-16s31-206s38.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/1167">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/510023a27f155972d6d6de2e56cdb3dc/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/1167"}}</script>


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