<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #777;">
<a href="https://gitlab.com/dkg">Daniel Kahn Gillmor</a> created an issue:
</p>
<div></div>
<p dir="auto">It would be nice to permit <code>certtool --to-p12</code> to generate password-less PKCS#12 objects.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">certtool --no-text --key-type rsa --hash SHA512 --bits 2048 --to-p12 --p12-name bob --password '' --load-privkey bob.key --load-ca-certificate ca.crt --load-certificate bob.crt --outfile bob.p12 < /dev/null</span>
<span id="LC2" class="line" lang="plaintext">Generating a PKCS #12 structure...</span>
<span id="LC3" class="line" lang="plaintext">Loading private key list...</span>
<span id="LC4" class="line" lang="plaintext">Loaded 1 private keys.</span>
<span id="LC5" class="line" lang="plaintext">bag_encrypt: The request is invalid.</span></code></pre>
<p dir="auto">using <code>--null-password</code> or <code>--empty-password</code> is of course not the same thing as having no password set.</p>
<p dir="auto">(fwiw, <code>--password ''</code> is a weird way to state "no password" -- it might be nicer to explicitly add <code>--no-password</code>.  Also, it looks like <code>--ask-pass</code> is irrelevant for <code>--to-p12</code>, since it always requires a password)</p>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/888">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/63217fe1b224f7757f0ee4593d213e54/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/888"}}</script>


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