<!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: #626168;">
<a href="https://gitlab.com/apteryks">Maxim Cournoyer</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1639">#1639</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #3a383f; word-wrap: break-word;">
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Hello!</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">I'm trying to debug why gnutls (as seen in the trust-store test) doesn't find p11-kit provided certificates when configured with <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>--with-default-trust-store-pkcs11=pkcs11:</code>.</p>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">There is no /etc/ssl/* directory on the system, and p11-kit is configured to have the nss provided certificates on its trust_paths (<code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>-Dtrust_paths=/gnu/store/bxwlna9pk9f4rh161a9hjbxrabd3ayyh-nss-certs-3.99/etc/ssl/certs</code>), and something like <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>p11-kit list-objects pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=certs</code> confirms it has access to these certificates:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; border-radius: .25rem; background-color: inherit; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">p11-kit list-objects pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=certs</span>
<span id="LC2" class="line" lang="plaintext">Object: #0</span>
<span id="LC3" class="line" lang="plaintext">    class: nss-builtin-root-list</span>
<span id="LC4" class="line" lang="plaintext">    label: Trust Anchor Roots</span>
<span id="LC5" class="line" lang="plaintext">    flags:</span>
<span id="LC6" class="line" lang="plaintext">          token</span>
<span id="LC7" class="line" lang="plaintext">Object: #1</span>
<span id="LC8" class="line" lang="plaintext">    class: nss-builtin-root-list</span>
<span id="LC9" class="line" lang="plaintext">    label: Trust Anchor Roots</span>
<span id="LC10" class="line" lang="plaintext">    flags:</span>
<span id="LC11" class="line" lang="plaintext">          token</span>
<span id="LC12" class="line" lang="plaintext">Object: #2</span>
<span id="LC13" class="line" lang="plaintext">    class: nss-builtin-root-list</span>
<span id="LC14" class="line" lang="plaintext">    label: Trust Anchor Roots</span>
<span id="LC15" class="line" lang="plaintext">    flags:</span>
<span id="LC16" class="line" lang="plaintext">          token</span>
<span id="LC17" class="line" lang="plaintext">Object: #3</span>
<span id="LC18" class="line" lang="plaintext">    class: nss-trust</span>
<span id="LC19" class="line" lang="plaintext">    label: Atos TrustedRoot 2011</span>
<span id="LC20" class="line" lang="plaintext">    id: a7:a5:06:b1:2c:a6:09:60:ee:d1:97:e9:70:ae:bc:3b:19:6c:db:21</span>
<span id="LC21" class="line" lang="plaintext">    flags:</span>
<span id="LC22" class="line" lang="plaintext">          token</span>
<span id="LC23" class="line" lang="plaintext">Object: #4</span>
<span id="LC24" class="line" lang="plaintext">    uri: pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=certs;id=%73%7A%6B%96%DB%42%07%8B%52%66%C2%64%32%17%FE%E0%67%90%2E%AD;object=DigiCert%20SMIME%20ECC%20P384%20Root%20G5;type=cert</span>
<span id="LC25" class="line" lang="plaintext">    class: certificate</span>
<span id="LC26" class="line" lang="plaintext">    certificate-type: x-509</span>
<span id="LC27" class="line" lang="plaintext">    certificate-category: authority</span>
<span id="LC28" class="line" lang="plaintext">    label: DigiCert SMIME ECC P384 Root G5</span>
<span id="LC29" class="line" lang="plaintext">    id: 73:7a:6b:96:db:42:07:8b:52:66:c2:64:32:17:fe:e0:67:90:2e:ad</span>
<span id="LC30" class="line" lang="plaintext">    start-date: 2021.01.15</span>
<span id="LC31" class="line" lang="plaintext">    end-date: 2046.01.14</span>
<span id="LC32" class="line" lang="plaintext">    flags:</span>
<span id="LC33" class="line" lang="plaintext">          token</span>
<span id="LC34" class="line" lang="plaintext">Object: #5</span>
<span id="LC35" class="line" lang="plaintext">    class: nss-trust</span>
<span id="LC36" class="line" lang="plaintext">    label: DigiCert SMIME ECC P384 Root G5</span>
<span id="LC37" class="line" lang="plaintext">    id: 73:7a:6b:96:db:42:07:8b:52:66:c2:64:32:17:fe:e0:67:90:2e:ad</span>
<span id="LC38" class="line" lang="plaintext">    flags:</span>
<span id="LC39" class="line" lang="plaintext">          token</span>
<span id="LC40" class="line" lang="plaintext">Object: #6</span>
<span id="LC41" class="line" lang="plaintext">    uri: pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=certs;id=%35%0F%C8%36%63%5E%E2%A3%EC%F9%3B%66%15%CE%51%52%E3%91%9A%3D;object=OISTE%20WISeKey%20Global%20Root%20GB%20CA;type=cert</span>
<span id="LC42" class="line" lang="plaintext">    class: certificate</span>
<span id="LC43" class="line" lang="plaintext">    certificate-type: x-509</span>
<span id="LC44" class="line" lang="plaintext">    certificate-category: authority</span>
<span id="LC45" class="line" lang="plaintext">    label: OISTE WISeKey Global Root GB CA</span>
<span id="LC46" class="line" lang="plaintext">    id: 35:0f:c8:36:63:5e:e2:a3:ec:f9:3b:66:15:ce:51:52:e3:91:9a:3d</span>
<span id="LC47" class="line" lang="plaintext">    start-date: 2014.12.01</span>
<span id="LC48" class="line" lang="plaintext">    end-date: 2039.12.01</span>
<span id="LC49" class="line" lang="plaintext">    flags:</span>
<span id="LC50" class="line" lang="plaintext">          token</span>
<span id="LC51" class="line" lang="plaintext">[...]</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0 0 1rem;" align="initial">Now the problem is that running the <code style='font-size: 90%; color: #18171d; word-wrap: break-word; border-radius: .25rem; background-color: #ececef; margin-top: 0; font-weight: inherit; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 0.125rem 0.25rem;'>tests/trust-store</code> test in that environment produces:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre class="code highlight js-syntax-highlight language-plaintext" v-pre="true" style='display: block; font-size: 14px; color: #3a383f; line-height: 1.6em; overflow-x: auto; border-radius: .25rem; position: relative; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 1rem; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; border-radius: .25rem; background-color: inherit; white-space: pre; margin-top: 0; font-family: "GitLab Mono", "JetBrains Mono", "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; font-variant-ligatures: none; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">doit:63: no certificates were found in system trust store!</span></code></pre>
<copy-code></copy-code><insert-code-snippet></insert-code-snippet>
</div>
<p dir="auto" style="color: #3a383f; margin: 0;" align="initial">It seems it doesn't consider the p11-kit certs, although my reading of the code is that it should.  Any ideas?</p>
</div>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #626168;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1639">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/ea6a8be6a4c61dc41a3e715351b5cc91/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/1639"}}</script>


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