<div dir="ltr">I hereby release my patches to stunnel for support of PKCS12 files into the public domain.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Dmitry Bakshaev</b> <span dir="ltr"><<a href="mailto:dab1818@gmail.com">dab1818@gmail.com</a>></span><br>Date: 2016-05-18 20:26 GMT+04:00<br>Subject: PKCS12 support patch<br>To: <a href="mailto:stunnel-users@stunnel.org">stunnel-users@stunnel.org</a><br><br><br><div dir="ltr">googling internet about using certificate and keys from PKCS12 file lead to convert it to PEM.<div>it requires some additional utilities (openssl not default windows application) and manual steps to convert.<br></div><div><br></div><div>this patch allow using PKCS12 directly from stunnel.</div><div>example configuration:</div><div>cert = /home/dab/.certs/my.p12<br></div><div><br></div><div>PKCS12-files detected by file extension (.p12 or .pfx, no case sensetive) and load specially.</div><div>password prompted if needed, empty password also supported.</div><div><br></div><div>code based on examples from:</div><div><div><a href="https://groups.google.com/forum/#!topic/mailing.openssl.users/iuBmSqwsIG4" target="_blank">https://groups.google.com/forum/#!topic/mailing.openssl.users/iuBmSqwsIG4</a></div><div><a href="http://openssl-users.openssl.narkive.com/J0bR3cMA/ssl-ctx-use-privatekey-file" target="_blank">http://openssl-users.openssl.narkive.com/J0bR3cMA/ssl-ctx-use-privatekey-file</a><br></div></div><div><br></div><div>patch tested on stunnel working on linux (gentoo: from our overlay <a href="http://bbgentoo.ilb.ru/repos/bbgentoo/bbgentoo_overlay/branches/drafts/net-misc/stunnel/" target="_blank">http://bbgentoo.ilb.ru/repos/bbgentoo/bbgentoo_overlay/branches/drafts/net-misc/stunnel/</a>)</div><div>and windows.</div></div>
</div><br></div>