<!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/asosedkin">Alexander Sosedkin</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1598">#1598</a>
</p>
<div class="md" style="position: relative; z-index: 1; color: #28272d; 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: #28272d; 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: #28272d; margin: 0 0 16px;" align="initial">GnuTLS currently does not limit the "strength" of the encryption it is willing to use through the PKCS#12 API,
so it will happily encrypt and decrypt a bag with, say, single DES.
While sane defaults for encryption would be solvable by just having sane defaults,
decryption is a harder problem in that the input data defines the algorithms used.</p>
<p dir="auto" style="color: #28272d; margin: 0 0 16px;" align="initial">IMO, this is best solved by introducing configurables
for what is considered unacceptably weak for an app/system,
similarly to how it's done for TLS through the configuration file / allowlisting API / priority strings.</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: #28272d; 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: #28272d; margin: 0 0 16px;" align="initial">Good question, I'm not sure.
User-facing applications that use GnuTLS and import PKCS#12...
say, whichever ones let user supply a client cert?
Could be a GNOME-stack web browser, a hypothetical chat app or, say, a NetworkManager VPN plugin?
I haven't actually checked though.</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: #28272d; 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: #28272d; margin: 0 0 16px;" align="initial">I am only somewhat familiar with two other libraries:</p>
<ul dir="auto" style="text-align: initial; list-style-type: disc; margin: 0; padding: 0;">
<li style="margin-top: 0; line-height: 1.6em; margin-left: 25px; padding-left: 3px;">NSS has this since its policy <a href="https://phabricator.services.mozilla.com/D204145" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">gained purposes</a>.
Note how NSS features a two-level trust value per algorithm:
forbidding, allowing to import but not export, allowing to export and import.</li>
<li style="line-height: 1.6em; margin-left: 25px; padding-left: 3px;">OpenSSL does NOT provide proper configuration controls for that,
but it happens to dampen the problem of unsafe defaults by moving dated algorithms
to a so-called '<a href="https://docs.openssl.org/master/man7/OSSL_PROVIDER-legacy" rel="nofollow noreferrer noopener" target="_blank" style="margin-top: 0;">legacy provider</a>' which isn't loaded by default.
So, no accidental single DES importing there unless you've explicitly weakened your setup.</li>
</ul>
</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/1598">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/2bda8795bb7f92c9ca7b363e4a0304a4/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/1598"}}</script>
</p>
</div>
</body>
</html>