<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I faced the same issue and had to resort to the RSA_generate_key call in C.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 5:04 AM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@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"><br><div>Hi. I cannot find a way to generate RSA private (and public) key from erlang.</div><div><br></div><div>I've looked through public_key sources and have found Yuri's cutkey:</div><div><a href="https://github.com/yrashk/cutkey/blob/master/src/cutkey.erl" target="_blank">https://github.com/yrashk/cutkey/blob/master/src/cutkey.erl</a><br></div><div><br></div><div>I haven't found any code in public_key sources that does something like cutkey does.</div><div><br></div><div>But I don't want to add extra dependency, maybe something has changed and it is</div><div>possible to generate RSAPrivateKey.</div><div><br></div><div>I'm writing client for letsencrypt and want fully automate all things without calling openssl via command line.</div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>