<!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: #777;">
<a href="https://gitlab.com/bmwiedemann1">Bernhard M. Wiedemann</a> created an issue:
</p>
<div></div>
<p dir="auto">While working on reproducible builds for openSUSE, I found that
certtool cannot extend certs beyond 2049-12-31</p>
<p dir="auto">Maybe related to <a href="https://gitlab.com/gnutls/gnutls/-/commit/5b3230ffc472903ba49614afe85c3e576a1b6b9b" data-original="5b3230ffc472903ba49614afe85c3e576a1b6b9b" data-link="false" data-link-reference="false" data-project="179611" data-commit="5b3230ffc472903ba49614afe85c3e576a1b6b9b" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="tests: verify that we generate dates with UTCTime prior to 2050" class="gfm gfm-commit has-tooltip">5b3230ff</a> that says
<code>we generate dates with GeneralizedTime format after 2050</code></p>
<p dir="auto">Here is a recent example from LibreOffice, but I have seen this problem before with several other certs:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">libreoffice-core> certtool -u --load-ca-privkey desktop/qa/data/test-PK-signing.pem  --load-ca-certificate desktop/qa/data/test-cert-chain-1.pem  --load-certificate desktop/qa/data/test-cert-chain-3.pem > x</span>
<span id="LC2" class="line" lang="plaintext">Generating a signed certificate...</span>
<span id="LC3" class="line" lang="plaintext">Activation/Expiration time.</span>
<span id="LC4" class="line" lang="plaintext">The certificate will expire in (days): 11111</span>
<span id="LC5" class="line" lang="plaintext">set_expiration: ASN1 parser: Element was not found.</span></code></pre>
<p dir="auto">The error is probably produced from a <code>src/certtool.c</code>
call to <code>gnutls_x509_crt_set_expiration_time</code></p>

</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/971">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/208c7f5a269032bec39f201f2e08f07b/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/971"}}</script>


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