<!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/nmav">Nikos Mavrogiannopoulos</a>
commented:
</p>
<div style="">
<blockquote dir="auto">
<p>Hi, Nikos,thank you. I'm still confused by the binding mechanism here. Next shows another certificate (5009_2.pem), in which the subject is null and the sujectAltName extension is not present. Why can the certificate pass the path validation?---Nothing should be bound to the subject public key."Certification path processing verifies the binding between the subject distinguished name and/or subject alternative name and subject public key." (RFC5280, Sec. 6).</p>
</blockquote>
<p dir="auto">I think there is a misunderstanding here. gnutls does not have a strict path validation mechanism as described in RFC5280. It has a validation mechanism that works as:</p>
<ol dir="auto">
<li>gnutls_certificate_verify_peers2: "are the signatures on the certificate valid"</li>
<li>gnutls_certificate_verify_peers3: "is this certificate trusted for this DNS name"?</li>
<li>gnutls_certificate_verify_peers: a more advanced combination of these questions; e.g., is this certificate marked as server-only and trusted for this DNS name?</li>
</ol>
<p dir="auto">Thus for the certificate you are quoting it will pass (1) since the signatures are valid, but will not pass (2) where a name comparison is requested (for 3 the pass/not pass depends on whether the request includes name comparison).</p>
</div>
</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/872#note_260437386">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/24a6a5f2147d3c007c09090eebbadf17/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/872#note_260437386"}}</script>
</p>
</div>
</body>
</html>