<!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/dueno">Daiki Ueno</a>
commented:
</p>
<div style="">
<p dir="auto">Thank you for the report. Though I am not following the discussion around this, my question is whether it is legitimate that the server sends such certificate chain. GnuTLS implements the <a href="https://tools.ietf.org/html/rfc5280#section-6.1" rel="nofollow noreferrer noopener" target="_blank">Basic Path Validation procedure</a> quite naively, meaning that it assumes that the <code>n</code>th certificate is signed by <code>n-1</code>th, and individual certificate validity is only checked at the <a href="https://tools.ietf.org/html/rfc5280#section-6.1.3" rel="nofollow noreferrer noopener" target="_blank">Basic Certificate Processing phase</a>.</p>
<p dir="auto">Having said that, there is a pre-processing mechanism and it wouldn't be so hard to "fix" this (I confirmed that it works if I add an extra check in <code>_gnutls_sort_clist</code>, though I guess the behavior should probably be controlled with a flag, like unsorted chain).</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/1008#note_352394245">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/d12d3e17a32d37ac488775b5ff9a6e88/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/1008#note_352394245"}}</script>


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