<!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/dkg">Daniel Kahn Gillmor</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1237">#1237</a>
</p>
<div></div>
<p dir="auto">over on the IETF's <a href="https://www.ietf.org/mailman/listinfo/spasm" rel="nofollow noreferrer noopener" target="_blank">LAMPS WG's mailing list</a>, <a href="https://mailarchive.ietf.org/arch/msg/spasm/fy6ilJRnqBaXiZctVyHJELQMmK8/" rel="nofollow noreferrer noopener" target="_blank">David A. Cooper writes</a>:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">[The certificates] contain negative serial numbers. While </span>
<span id="LC2" class="line" lang="plaintext">this is permitted by X.509, Section 4.1.2.2 of RFC 5280 requires </span>
<span id="LC3" class="line" lang="plaintext">conforming CAs to use positive integers as serial numbers.</span></code></pre>
<p dir="auto">While the <code>certtool</code> template used to generate the certificate does contain hex that would be read as a negative number (e.g. <code>serial = 0xdebecc44907bab1df99acd6d1568fbb61df2e6</code>), certtool probably shouldn't embed it in non-compliant form. Two different ways that GnuTLS could approach this would be:</p>
<ul dir="auto">
<li>prefix such a serial number with a leading 0x00 octet, thereby making it compliant, or</li>
<li>reject it as malformed and refuse to generate the cert (as it would if it saw a template line <code>serial = nan</code>)</li>
</ul>
<p dir="auto">I suspect this is also the case for generating certificate requests, but i've only encountered it when generating certificates.</p>
<p dir="auto">This concerns <a href="https://datatracker.ietf.org/doc/draft-ietf-lamps-samples/" rel="nofollow noreferrer noopener" target="_blank">draft-ietf-lamps-samples</a>, which contains certificates being generated by <code>certtool</code>.</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/1237">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/7f7180b04e592614e70de59c528551d6/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/1237"}}</script>
</p>
</div>
</body>
</html>