<!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/-/merge_requests/1812#note_1778077934">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">I think you could use regular API, such as <code style='font-size: 90%; color: #1f1e24; word-wrap: break-word; background-color: #ececef; border-radius: 4px; margin-top: 0; font-weight: inherit; 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; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>gnutls_pubkey_import</code> to deal with that format, as certtool can decode it properly:</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<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: inherit; 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><span class="nb">echo </span>3059301306072a8648ce3d020106082a8648ce3d0301070342000462d5bd3372af75fe85a040715d0f502428e07046868b0bfdfa61d731afe44f26ac333a93a9e70a81cd5a95b5bf8d13990eb741c8c38872b4a07d275a014e30cf | <span class="nb">sed</span> <span class="s1">'s/../\\\\x\0/g'</span> | xargs <span class="nb">printf</span> | certtool <span class="nt">--pubkey-info</span> <span class="nt">--inder</span></span>
<span id="LC2" class="line" lang="console"><span class="go" style="margin-top: 0;">Public Key Information:</span></span>
<span id="LC3" class="line" lang="console"><span class="go" style="margin-top: 0;"> Public Key Algorithm: EC/ECDSA</span></span>
<span id="LC4" class="line" lang="console"><span class="go" style="margin-top: 0;"> Algorithm Security Level: High (256 bits)</span></span>
<span id="LC5" class="line" lang="console"><span class="go" style="margin-top: 0;"> Curve: SECP256R1</span></span>
<span id="LC6" class="line" lang="console"><span class="go" style="margin-top: 0;"> X:</span></span>
<span id="LC7" class="line" lang="console"><span class="go" style="margin-top: 0;"> 62:d5:bd:33:72:af:75:fe:85:a0:40:71:5d:0f:50:24</span></span>
<span id="LC8" class="line" lang="console"><span class="go" style="margin-top: 0;"> 28:e0:70:46:86:8b:0b:fd:fa:61:d7:31:af:e4:4f:26</span></span>
<span id="LC9" class="line" lang="console"><span class="go" style="margin-top: 0;"> Y:</span></span>
<span id="LC10" class="line" lang="console"><span class="go" style="margin-top: 0;"> 00:ac:33:3a:93:a9:e7:0a:81:cd:5a:95:b5:bf:8d:13</span></span>
<span id="LC11" class="line" lang="console"><span class="go" style="margin-top: 0;"> 99:0e:b7:41:c8:c3:88:72:b4:a0:7d:27:5a:01:4e:30</span></span>
<span id="LC12" class="line" lang="console"><span class="go" style="margin-top: 0;"> cf</span></span>
<span id="LC13" class="line" lang="console"></span>
<span id="LC14" class="line" lang="console"><span class="go" style="margin-top: 0;">Public Key ID:</span></span>
<span id="LC15" class="line" lang="console"><span class="go" style="margin-top: 0;"> sha1:cc558fb828759c01bb7066093f52ecd29cbe6a43</span></span>
<span id="LC16" class="line" lang="console"><span class="go" style="margin-top: 0;"> sha256:a49d5e91410cec8881d7847d9de258b3fedddb71bf37d6ab8509354be06ce215</span></span>
<span id="LC17" class="line" lang="console"><span class="go" style="margin-top: 0;">Public Key PIN:</span></span>
<span id="LC18" class="line" lang="console"><span class="go" style="margin-top: 0;"> pin-sha256:pJ1ekUEM7IiB14R9neJYs/7d23G/N9arhQk1S+Bs4hU=</span></span>
<span id="LC19" class="line" lang="console"></span>
<span id="LC20" class="line" lang="console"></span>
<span id="LC21" class="line" lang="console"><span class="go" style="margin-top: 0;">-----BEGIN PUBLIC KEY-----</span></span>
<span id="LC22" class="line" lang="console"><span class="go" style="margin-top: 0;">MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEYtW9M3Kvdf6FoEBxXQ9QJCjgcEaG</span></span>
<span id="LC23" class="line" lang="console"><span class="go" style="margin-top: 0;">iwv9+mHXMa/kTyasMzqTqecKgc1albW/jROZDrdByMOIcrSgfSdaAU4wzw==</span></span></code></pre>
<copy-code></copy-code>
</div>
</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/-/merge_requests/1812#note_1778077934">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/6b6b46179d577bc1933ff28ab906ff86/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 Merge request","url":"https://gitlab.com/gnutls/gnutls/-/merge_requests/1812#note_1778077934"}}</script>
</p>
</div>
</body>
</html>