[erlang-questions] {tls_alert,"handshake failure"}

Alex Hudich alttagil@REDACTED
Mon Mar 2 21:46:40 CET 2015


Hi

I’ve got some strange errors when I try to make SSL connection to a web-site with peer verification on. 

Here’s an example:

I’ve downloaded PEM certificates from https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt

Then I start erl and run a command ssl:start().

Then I try to connect somewhere (I renamed ca-bundle.crt file to a cacert.pem):

2>  ssl:connect( "t.ileads.ru", 443, [{verify,verify_peer},{cacertfile,"cacert.pem"}]).

=ERROR REPORT==== 2-Mar-2015::23:32:15 ===
SSL: certify: ssl_handshake.erl:1403:Fatal error: handshake failure
{error,{tls_alert,"handshake failure"}}


Without peer verification everything went ok. 

What’s wrong? Or maybe I do something wrong?

--
cul8er, Alex.


More information about the erlang-questions mailing list