<div dir="ltr"><div><div>If I read the source code correctly, this error occurs when the server expects the client to present a certificate, but the client doesn't present one. What options do you use when starting the client?<br><br></div>Regards,<br></div>Magnus<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 4:43 PM, Mark Steele <span dir="ltr"><<a href="mailto:mark@control-alt-del.org" target="_blank">mark@control-alt-del.org</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">Hello list, <div><br></div><div>Once again I'm banging my head against TLS distribution in Erlang.</div><div><br></div><div>This time around, everything is almost working.</div><div><br></div><div>My problem is now getting the certificate validation to work.</div><div><br></div><div>As soon as I add ' server_verify verify_peer ' to my ssl options on the server-side, the connection is failing.</div><div><br></div><div><div>Server:</div><div><br></div><div>SSL: certify: ssl_connection.erl:398:Fatal error: handshake failure</div></div><div><br></div><div>Client:</div><div><br></div><div><div>SSL: cipher: ssl_alert.erl:92:Fatal error: handshake failure</div></div><div><br></div><div><br></div><div>The client and server certs are the same.</div><div><br></div><div>I can use the same certs with Cowboy/Ranch or plain ssl sockets (with the verify_peer option) and it works flawlessly, so it would appear that it's something specific to TLS distribution that's wonky.</div><div><br></div><div>Running on Erlang/OTP 17 [erts-6.4]<br></div><div><br></div><div>Any help would be appreciated.</div><div><br></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>