<!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 style="color: #777777;">
<a href="https://gitlab.com/dkg">Daniel Kahn Gillmor</a>
commented:
</p>
<div style="">
<p dir="auto">I note that i can launder the .p12 file through NSS's <code>pk12util</code> to remove the passwords on the embedded certificates:</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext"> nsstmp=$(mktemp -d)</span>
<span id="LC2" class="line" lang="plaintext"> pk12util -i bob.der.p12 -d "sql:$nsstmp"</span>
<span id="LC3" class="line" lang="plaintext"> pk12util -o bob.laundered.p12 -n bob -d "sql:$nsstmp" -W '' -C NONE</span>
<span id="LC4" class="line" lang="plaintext"> rm -rf "$nsstmp"</span></code></pre>
<p dir="auto">but even that laundered certificate has a passphrase (the empty string) on the private key material, despite having no passphrase for the certificates.  Maybe it's not possible to store a cleartext private key in PKCS#12?</p>
</div>


</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#note_264457141">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/adf9e7de9147954e33e978b12e1683d5/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#note_264457141"}}</script>


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