<!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">

<div style="">
<p dir="auto">I debugged gnutls-cli. It does work as expected.</p>
<p dir="auto">pidgin validates each certificate pair individually (gnutls_x509_crt_verify) while gnutls-cli does the same using a list of certificates (gnutls_certificate_verify_peers). The difference is that while calling gnutls_x509_crt_verify directly, the end_cert parameter in verify_crt is always 1, even while testing an intermediate CA against Root CA. So, intermediate CA is treated as a Server Certificate. So, indeed pidgin bug.</p>
<p dir="auto">Anyway, gnutls should not check name constraints against a CN value that cannot be a DNS name. OpenSSL does check that situation: <a href="https://github.com/openssl/openssl/commit/d02d80b2e80adfdde49f76cf7c7af4e013f45005#diff-caf502a9d3e53f3b21e77e5e324b62b4" rel="nofollow noreferrer noopener" target="_blank">https://github.com/openssl/openssl/commit/d02d80b2e80adfdde49f76cf7c7af4e013f45005#diff-caf502a9d3e53f3b21e77e5e324b62b4</a></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/776#note_176032374">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/06a083f33e3c5da595b4137ad902b90b/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/776#note_176032374"}}</script>

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