<!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: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: var(--default-regular-font, "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,0.01) 0 0 1px; font-family: var(--default-regular-font, "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 style="color: #777777;">
<a href="https://gitlab.com/dueno">Daiki Ueno</a>
<a href="https://gitlab.com/gnutls/gnutls/-/issues/1467#note_1599921891">commented</a>:
</p>
<div class="md" style="color: #333238; word-wrap: break-word;">
<p dir="auto" style="color: #333238; margin: 0 0 16px;" align="initial">With the new list-objects <a href="https://github.com/p11-glue/p11-kit/pull/533" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">subcommand</a> of p11-kit, which uses the P11KitIter interface, the output is as follows:</p>
<div class="gl-relative markdown-code-block js-markdown-code">
<pre data-canonical-lang="console" class="code highlight js-syntax-highlight language-console" lang="console" v-pre="true" style='display: block; font-size: 14px; color: #333238; line-height: 1.6em; overflow-x: auto; border-radius: 4px; position: relative; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; word-break: break-all; word-wrap: break-word; background-color: #fbfafd; margin: 0 0 16px; padding: 12px; border: 1px solid #dcdcde;'><code style='font-size: 0.875rem; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: var(--default-mono-font, "GitLab Mono"),"JetBrains Mono","Menlo","DejaVu Sans Mono","Liberation Mono","Consolas","Ubuntu Mono","Courier New","andale mono","lucida console",monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="console" style="margin-top: 0;"><span class="gp" style="margin-top: 0;">$</span><span class="w"> </span>p11-kit list-objects pkcs11:model<span class="o">=</span>SoftHSM%20v2</span>
<span id="LC2" class="line" lang="console"><span class="gp" style="margin-top: 0;">Object: #</span>0</span>
<span id="LC3" class="line" lang="console"><span class="gp" style="margin-top: 0;"> uri: pkcs11:model=SoftHSM%20v2;</span><span class="nv">manufacturer</span><span class="o">=</span>SoftHSM%20project<span class="p">;</span><span class="nv">serial</span><span class="o">=</span>4b0a8274329e800a<span class="p">;</span><span class="nv">token</span><span class="o">=</span>Token1<span class="p">;</span><span class="nb">id</span><span class="o">=</span><span class="p">;</span><span class="nv">object</span><span class="o">=</span>OpenDNSSEC1<span class="p">;</span><span class="nb">type</span><span class="o">=</span>public</span>
<span id="LC4" class="line" lang="console"><span class="go" style="margin-top: 0;"> class: public-key</span></span>
<span id="LC5" class="line" lang="console"><span class="go" style="margin-top: 0;"> key-type: ec</span></span>
<span id="LC6" class="line" lang="console"><span class="go" style="margin-top: 0;"> label: OpenDNSSEC1</span></span>
<span id="LC7" class="line" lang="console"><span class="go" style="margin-top: 0;"> id: </span></span>
<span id="LC8" class="line" lang="console"><span class="go" style="margin-top: 0;"> flags:</span></span>
<span id="LC9" class="line" lang="console"><span class="go" style="margin-top: 0;"> local</span></span>
<span id="LC10" class="line" lang="console"><span class="go" style="margin-top: 0;"> token</span></span>
<span id="LC11" class="line" lang="console"><span class="go" style="margin-top: 0;"> modifiable</span></span>
<span id="LC12" class="line" lang="console"><span class="go" style="margin-top: 0;"> copyable</span></span>
<span id="LC13" class="line" lang="console"><span class="go" style="margin-top: 0;"> destroyable</span></span>
<span id="LC14" class="line" lang="console"><span class="gp" style="margin-top: 0;">Object: #</span>1</span>
<span id="LC15" class="line" lang="console"><span class="gp" style="margin-top: 0;"> uri: pkcs11:model=SoftHSM%20v2;</span><span class="nv">manufacturer</span><span class="o">=</span>SoftHSM%20project<span class="p">;</span><span class="nv">serial</span><span class="o">=</span>4b0a8274329e800a<span class="p">;</span><span class="nv">token</span><span class="o">=</span>Token1<span class="p">;</span><span class="nb">id</span><span class="o">=</span><span class="p">;</span><span class="nv">object</span><span class="o">=</span><span class="p">;</span><span class="nb">type</span><span class="o">=</span>public</span>
<span id="LC16" class="line" lang="console"><span class="go" style="margin-top: 0;"> class: public-key</span></span>
<span id="LC17" class="line" lang="console"><span class="go" style="margin-top: 0;"> key-type: rsa</span></span>
<span id="LC18" class="line" lang="console"><span class="go" style="margin-top: 0;"> label: </span></span>
<span id="LC19" class="line" lang="console"><span class="go" style="margin-top: 0;"> id: </span></span>
<span id="LC20" class="line" lang="console"><span class="go" style="margin-top: 0;"> flags:</span></span>
<span id="LC21" class="line" lang="console"><span class="go" style="margin-top: 0;"> local</span></span>
<span id="LC22" class="line" lang="console"><span class="go" style="margin-top: 0;"> token</span></span>
<span id="LC23" class="line" lang="console"><span class="go" style="margin-top: 0;"> modifiable</span></span>
<span id="LC24" class="line" lang="console"><span class="go" style="margin-top: 0;"> copyable</span></span>
<span id="LC25" class="line" lang="console"><span class="go" style="margin-top: 0;"> destroyable</span></span>
<span id="LC26" class="line" lang="console"><span class="gp" style="margin-top: 0;">Object: #</span>2</span>
<span id="LC27" class="line" lang="console"><span class="gp" style="margin-top: 0;"> uri: pkcs11:model=SoftHSM%20v2;</span><span class="nv">manufacturer</span><span class="o">=</span>SoftHSM%20project<span class="p">;</span><span class="nv">serial</span><span class="o">=</span>4b0a8274329e800a<span class="p">;</span><span class="nv">token</span><span class="o">=</span>Token1<span class="p">;</span><span class="nb">id</span><span class="o">=</span><span class="p">;</span><span class="nv">object</span><span class="o">=</span><span class="p">;</span><span class="nb">type</span><span class="o">=</span>public</span>
<span id="LC28" class="line" lang="console"><span class="go" style="margin-top: 0;"> class: public-key</span></span>
<span id="LC29" class="line" lang="console"><span class="go" style="margin-top: 0;"> key-type: ec</span></span>
<span id="LC30" class="line" lang="console"><span class="go" style="margin-top: 0;"> label: </span></span>
<span id="LC31" class="line" lang="console"><span class="go" style="margin-top: 0;"> id: </span></span>
<span id="LC32" class="line" lang="console"><span class="go" style="margin-top: 0;"> flags:</span></span>
<span id="LC33" class="line" lang="console"><span class="go" style="margin-top: 0;"> local</span></span>
<span id="LC34" class="line" lang="console"><span class="go" style="margin-top: 0;"> token</span></span>
<span id="LC35" class="line" lang="console"><span class="go" style="margin-top: 0;"> modifiable</span></span>
<span id="LC36" class="line" lang="console"><span class="go" style="margin-top: 0;"> copyable</span></span>
<span id="LC37" class="line" lang="console"><span class="go" style="margin-top: 0;"> destroyable</span></span>
<span id="LC38" class="line" lang="console"><span class="gp" style="margin-top: 0;">Object: #</span>3</span>
<span id="LC39" class="line" lang="console"><span class="gp" style="margin-top: 0;"> uri: pkcs11:model=SoftHSM%20v2;</span><span class="nv">manufacturer</span><span class="o">=</span>SoftHSM%20project<span class="p">;</span><span class="nv">serial</span><span class="o">=</span>4b0a8274329e800a<span class="p">;</span><span class="nv">token</span><span class="o">=</span>Token1<span class="p">;</span><span class="nb">id</span><span class="o">=</span><span class="p">;</span><span class="nv">object</span><span class="o">=</span><span class="p">;</span><span class="nb">type</span><span class="o">=</span>public</span>
<span id="LC40" class="line" lang="console"><span class="go" style="margin-top: 0;"> class: public-key</span></span>
<span id="LC41" class="line" lang="console"><span class="go" style="margin-top: 0;"> key-type: ec</span></span>
<span id="LC42" class="line" lang="console"><span class="go" style="margin-top: 0;"> label: </span></span>
<span id="LC43" class="line" lang="console"><span class="go" style="margin-top: 0;"> id: </span></span>
<span id="LC44" class="line" lang="console"><span class="go" style="margin-top: 0;"> flags:</span></span>
<span id="LC45" class="line" lang="console"><span class="go" style="margin-top: 0;"> local</span></span>
<span id="LC46" class="line" lang="console"><span class="go" style="margin-top: 0;"> token</span></span>
<span id="LC47" class="line" lang="console"><span class="go" style="margin-top: 0;"> modifiable</span></span>
<span id="LC48" class="line" lang="console"><span class="go" style="margin-top: 0;"> copyable</span></span>
<span id="LC49" class="line" lang="console"><span class="go" style="margin-top: 0;"> destroyable</span></span></code></pre>
<copy-code></copy-code>
</div>
<p dir="auto" style="color: #333238; margin: 0;" align="initial">I guess p11tool could also do similar.</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/1467#note_1599921891">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/b569af2db4f71c2583ff3285ddd82e79/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/1467#note_1599921891"}}</script>
</p>
</div>
</body>
</html>