<!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/1474#note_1741560354">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"><a href="https://gitlab.com/aadit-n3rdy" data-reference-type="user" data-user="8012555" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="n3rdy" style="background-color: #cbe2f9; border-radius: 4px; color: #0b5cad; margin-top: 0; padding: 0 2px;">@aadit-n3rdy</a> I think that's more of a question for <a href="https://gitlab.com/adrian.wijaya" data-reference-type="user" data-user="3512949" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="Adrian Wijaya" style="background-color: #cbe2f9; border-radius: 4px; color: #0b5cad; padding: 0 2px;">@adrian.wijaya</a> as he already opened a draft merge request (<a href="https://gitlab.com/gnutls/gnutls/-/merge_requests/1783" data-reference-type="merge_request" data-original="!1783" data-link="false" data-link-reference="false" data-project="179611" data-merge-request="257538716" data-project-path="gnutls/gnutls" data-iid="1783" data-container="body" data-placement="top" title="Draft: pkcs8: support read and write private key in v2 format" class="gfm gfm-merge_request">!1783</a>).</p>
<p dir="auto" style="color: #333238; margin: 0;" align="initial"><a href="https://gitlab.com/adrian.wijaya" data-reference-type="user" data-user="3512949" data-container="body" data-placement="top" class="gfm gfm-project_member js-user-link" title="Adrian Wijaya" style="background-color: #cbe2f9; border-radius: 4px; color: #0b5cad; margin-top: 0; padding: 0 2px;">@adrian.wijaya</a> sorry for not responding early. For decoding you are right; currently only DSA keys would benefit from the v2 format, though there might be more if we support PQC private keys (<a href="https://www.ietf.org/archive/id/draft-ietf-lamps-dilithium-certificates-01.html#section-6" rel="nofollow noreferrer noopener" target="_blank">example</a>). For encoding, you could add a parameter to <a href="https://gitlab.com/gnutls/gnutls/-/blob/master/lib/x509/privkey_pkcs8.c?ref_type=heads#L177"><code style='font-size: 0.875rem; color: inherit; word-wrap: break-word; background-color: #ececef; border-radius: 4px; 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; white-space: pre-wrap; overflow-wrap: break-word; word-break: keep-all; padding: 2px 4px;'>encode_to_private_key_info</code></a>, though we need to think about how to expose this control through a public API, e.g., gnutls_x509_privkey_export_pkcs8, maybe with a flag.</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/1474#note_1741560354">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/d1739cdb60b4e0fffa131977b9aeae74/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/1474#note_1741560354"}}</script>
</p>
</div>
</body>
</html>