<div dir="ltr">In case somebody will look for same thing some day:<br><br>get_der(Pem)-><br>    {_,Der,_} = hd(public_key:pem_decode(Pem)),<br>    Der.<br><br>ssl:listen(Port [{key, {'RSAPrivateKey', get_der(KeyPem)}}, {cert, get_der(CertPem)}, {cacerts, [get_der(CaPem)]}])<br>
<br><br><br><div class="gmail_quote">On Mon, Jul 2, 2012 at 6:39 PM, Rostislav Romanin <span dir="ltr"><<a href="mailto:rostislav.romanin@gmail.com" target="_blank">rostislav.romanin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I have key,cert (pem format)as a binary. According to the documentation ssl:listen()<br>accepts them as der_encoded().<br>
<br>What is the path that should be traveled in order to get there ?<br>(guess it starts with pem_decode and ends with der_encode but can't figure the <br>
exact process).<br><br>Thanks,<br><span>Rostislav</span><br><br></div>
</blockquote></div><br></div>