<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en" style='--code-editor-font: var(--default-mono-font, "GitLab Mono"), JetBrains Mono, Menlo, DejaVu Sans Mono, Liberation Mono, Consolas, Ubuntu Mono, Courier New, andale mono, lucida console, monospace;'>
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>
<style data-premailer="ignore" type="text/css">
a { color: #1068bf; }
</style>
<style>img {
max-width: 100%; height: auto;
}
body {
font-size: .875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px;
}
body {
font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,.01) 0 0 1px; font-family: "GitLab Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans",Ubuntu,Cantarell,"Helvetica Neue",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";'>
<div class="content">
<p class="details" style="font-style: italic; color: #737278;">
<a href="https://gitlab.com/dulanshuangqiao">dulanshuangqiao</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1612">#1612</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #18171d; margin: 0 0 16px;" align="initial">
<a href="#description-of-the-feature" aria-hidden="true" class="anchor" id="user-content-description-of-the-feature" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Description of the feature:</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 16px;" align="initial">Try parsing a certificate with duplicate extensions</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #18171d; margin: 24px 0 16px;" align="initial">
<a href="#applications-that-this-feature-may-be-relevant-to" aria-hidden="true" class="anchor" id="user-content-applications-that-this-feature-may-be-relevant-to" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Applications that this feature may be relevant to:</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 16px;" align="initial">In the interests of predictability, it is probably better to reject certificates with duplicated extensions during validation, but not refuse to parse them.</p>
<h2 dir="auto" style="font-size: 1.5em; font-weight: 600; padding-bottom: .3em; border-bottom-width: 1px; border-bottom-color: #bfbfc3; border-bottom-style: solid; color: #18171d; margin: 24px 0 16px;" align="initial">
<a href="#is-this-feature-implemented-in-other-libraries-and-which" aria-hidden="true" class="anchor" id="user-content-is-this-feature-implemented-in-other-libraries-and-which" style="margin-top: 0; float: left; margin-left: -20px; text-decoration: none; outline: none;"></a>Is this feature implemented in other libraries (and which)</h2>
<p dir="auto" style="color: #3a383f; margin: 0 0 16px;" align="initial">OpenSSL allows parsing of certificates with repeated extensions, in order to meet predictability</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 16px;" align="initial">openssl x509 -in Cert17319379201A1.der -noout -text
Certificate:
X509v3 extensions:
X509v3 Authority Key Identifier:
keyid:8C:AE:A9:CD:18:10:47:48:33:5D:C6:AC:2B:6A:29:BB:5F:B4:7D:29
DirName:/CN=RandomIssuer-1763/C=US/O=RandomOrg-1011
serial:02:18:94:68:C7
X509v3 Authority Key Identifier:
keyid:8C:AE:A9:CD:18:10:47:48:33:5D:C6:AC:2B:6A:29:BB:5F:B4:7D:29
DirName:/CN=RandomIssuer-1763/C=US/O=RandomOrg-1011
serial:02:18:B9:68:C7</p>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">certtool -i --inraw --infile Cert17319379201A1.der
import error: Duplicate extension in X.509 certificate.</p>
</div>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #737278;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1612">view it on GitLab</a>.
<br>
You're receiving this email because of your account on <a target="_blank" rel="noopener noreferrer" href="https://gitlab.com">gitlab.com</a>. <a href="https://gitlab.com/-/sent_notifications/cfb669ad79e5e3252937c292902bc34e/unsubscribe" target="_blank" rel="noopener noreferrer">Unsubscribe</a> from this thread · <a href="https://gitlab.com/-/profile/notifications" target="_blank" rel="noopener noreferrer" class="mng-notif-link">Manage all notifications</a> · <a href="https://gitlab.com/help" target="_blank" rel="noopener noreferrer" class="help-link">Help</a>
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/-/issues/1612"}}</script>
</p>
</div>
</body>
</html>