[erlang-bugs] SSL sslv3 not working as expected?

Ingela Anderton Andin <>
Thu Feb 13 12:23:32 CET 2014


Hi!

The following patch will solve the problem below.

diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index 7edc655..c4fa52c 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -771,7 +771,9 @@ validate_option(srp_identity, {Username, Password})

  validate_option(ciphers, Value)  when is_list(Value) ->
      Version = tls_record:highest_protocol_version([]),
-    try cipher_suites(Version, Value)
+    try cipher_suites(Version, Value) of
+	_->
+	    Value
      catch
  	exit:_ ->
  	    throw({error, {options, {ciphers, Value}}});



Regards Ingela Erlang/OTP team - Ericsson AB

On 02/07/2014 02:39 PM, Loïc Hoguin wrote:
> Please see attached.
>
> For the first test, you need the certificate files you can find in
> Cowboy's SSL example (link is in the source). I just noticed that the
> error for that test is more verbose in master. Not sure if that's a good
> thing.
>
> For the second test, you need the erl_make_certs module found in OTP's
> SSL application's test directory.
>
> The output should be as follow. (YES people I am aware certificates and
> keys are included in the error reports. They are either generated or
> already public. You do not need to warn me about it. Thank you.)
>
> Enjoy!
>
> % erl
> Erlang/OTP 17 [RELEASE CANDIDATE 1] [erts-6.0] [source-8d71ab4] [64-bit]
> [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
>
> Eshell V6.0  (abort with ^G)
> 1> c(sslv3bug_1).
> {ok,sslv3bug_1}
> 2> c(sslv3bug_2).
> {ok,sslv3bug_2}
> 3> c(erl_make_certs).
> {ok,erl_make_certs}
> 4> sslv3bug_1:server().
> <0.68.0>
> 5> sslv3bug_1:client().
>
> =ERROR REPORT==== 7-Feb-2014::14:35:36 ===
> ** State machine <0.74.0> terminating
> ** Last message in was {tcp,#Port<0.2567>,
>
> <<37,242,6,108,56,11,13,53,8,124,121,177,224,225,
>
> 74,202,119,55,113,255,149,182,187,112,63,249,32,
>
> 228,11,30,87,232,165,85,99,178,130,29,69,122,
>
> 197,117,97,20,209,0,128,136,95,242,23,13,180,70,
>
> 30,115,142,31,209,46,215,77,113,218,250,191,165,
>
> 223,25,10,73,119,196,193,108,146,14,209,250,122,
>
> 14,168,170,188,149,168,235,67,252,6,247,29,253,
>
> 203,253,219,114,161,112,19,44,197,60,251,26,190,
>
> 160,118,235,40,75,100,81,153,153,107,93,130,70,
>
> 102,64,164,164,36,39,3,163,252,87,176,128,254,
>
> 50,178,252,223,25,107,98,52,145,153,209,255,18,
>
> 204,185,75,211,101,202,78,164,43,82,238,252,120,
>
> 56,137,64,208,253,151,232,123,135,223,95,130,
>                                171,67,78,244,44,22,3,0,0,4,14,0,0,0>>}
> ** When State == certify
> **      Data  == {state,client,
>                       {#Ref<0.0.0.971>,<0.33.0>},
>                       gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,
>                       "localhost",44443,#Port<0.2567>,
>                       {ssl_options,undefined,
>                           [{3,3},{3,2},{3,1},{3,0}],
>                           verify_none,
>                           {#Fun<ssl.1.40440964>,[]},
>                           false,false,undefined,1,<<>>,undefined,<<>>,
>                           undefined,undefined,undefined,<<>>,undefined,
>                           undefined,undefined,undefined,undefined,
>                           [<<"À$">>,<<"À(">>,<<"À&">>,<<"À*">>,
>                            <<0,107>>,
>                            <<0,106>>,
>                            <<0,61>>,
>                            <<"À#">>,<<"À'">>,<<"À%">>,<<"À)">>,
>                            <<0,103>>,
>                            <<0,64>>,
>                            <<0,60>>,
>                            <<"À\n">>,
>                            <<192,20>>,
>                            <<0,57>>,
>                            <<0,56>>,
>                            <<192,5>>,
>                            <<192,15>>,
>                            <<0,53>>,
>                            <<"À\b">>,
>                            <<192,18>>,
>                            <<0,22>>,
>                            <<0,19>>,
>                            <<192,3>>,
>                            <<"À\r">>,
>                            <<0,10>>,
>                            <<"À\t">>,
>                            <<192,19>>,
>                            <<0,51>>,
>                            <<0,50>>,
>                            <<192,4>>,
>                            <<192,14>>,
>                            <<0,47>>,
>                            <<192,7>>,
>                            <<192,17>>,
>                            <<0,5>>,
>                            <<0,4>>,
>                            <<0,21>>,
>                            <<192,2>>,
>                            <<"À\f">>,
>                            <<0,9>>],
>
> #Fun<ssl.0.40440964>,true,268435456,false,undefined,
>
> undefined,false,undefined,undefined,true,undefined,
>                           false},
>                       {socket_options,list,0,0,0,true},
>                       {connection_states,
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,0>>,
>
> 1,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
>                                   undefined,undefined},
>
> undefined,undefined,undefined,undefined,2,true,
>                               undefined,undefined},
>                           {connection_state,
>
> {security_parameters,<<"À(">>,1,7,1,16,256,32,
>                                   unknown,5,5,48,0,undefined,
>
> <<82,244,225,40,177,238,52,250,53,57,12,72,96,
>
> 92,157,86,51,250,227,239,173,167,250,154,25,
>                                     29,237,89,176,188,61,181>>,
>
> <<82,244,225,40,43,69,20,224,136,14,240,93,
>
> 225,76,191,156,202,163,215,89,28,56,98,213,
>                                     12,49,173,48,191,102,81,223>>,
>                                   undefined},
>                               undefined,undefined,undefined,undefined,
>                               undefined,true,undefined,undefined},
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,0>>,
>
> 1,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
>                                   undefined,undefined},
>
> undefined,undefined,undefined,undefined,1,true,
>                               undefined,undefined},
>                           {connection_state,
>
> {security_parameters,<<"À(">>,1,7,1,16,256,32,
>                                   unknown,5,5,48,0,undefined,
>
> <<82,244,225,40,177,238,52,250,53,57,12,72,96,
>
> 92,157,86,51,250,227,239,173,167,250,154,25,
>                                     29,237,89,176,188,61,181>>,
>
> <<82,244,225,40,43,69,20,224,136,14,240,93,
>
> 225,76,191,156,202,163,215,89,28,56,98,213,
>                                     12,49,173,48,191,102,81,223>>,
>                                   undefined},
>                               undefined,undefined,undefined,undefined,
>                               undefined,true,undefined,undefined}},
>                       {protocol_buffers,[],
>
> <<22,3,0,0,203,12,0,0,199,3,0,23,65,4,112,42,53,141,
>
> 46,236,29,236,36,128,99,108,209,39,230,153,96,212,8>>,
>                           <<>>,[]},
>
> {[<<11,0,5,46,0,5,43,0,2,169,48,130,2,165,48,130,2,14,160,
>
> 3,2,1,2,2,9,0,235,233,83,76,182,123,146,121,48,13,6,9,
>
> 42,134,72,134,247,13,1,1,5,5,0,48,85,49,11,48,9,6,3,
>
> 85,4,6,19,2,85,83,49,14,48,12,6,3,85,4,8,12,5,84,101,
>
> 120,97,115,49,19,48,17,6,3,85,4,10,12,10,78,105,110,
>
> 101,32,78,105,110,101,115,49,15,48,13,6,3,85,4,11,12,
>
> 6,67,111,119,98,111,121,49,16,48,14,6,3,85,4,3,12,7,
>
> 82,79,79,84,32,67,65,48,30,23,13,49,51,48,50,50,56,48,
>
> 53,50,51,51,52,90,23,13,51,51,48,50,50,51,48,53,50,51,
>
> 51,52,90,48,87,49,11,48,9,6,3,85,4,6,19,2,85,83,49,14,
>
> 48,12,6,3,85,4,8,12,5,84,101,120,97,115,49,19,48,17,6,
>
> 3,85,4,10,12,10,78,105,110,101,32,78,105,110,101,115,
>
> 49,15,48,13,6,3,85,4,11,12,6,67,111,119,98,111,121,49,
>
> 18,48,16,6,3,85,4,3,12,9,108,111,99,97,108,104,111,
>
> 115,116,48,129,159,48,13,6,9,42,134,72,134,247,13,1,1,
>
> 1,5,0,3,129,141,0,48,129,137,2,129,129,0,205,181,181,
>
> 26,49,2,204,117,28,253,100,147,168,184,128,26,168,194,
>
> 53,199,17,230,198,149,75,236,168,207,100,143,70,26,
>
> 104,201,253,63,168,26,215,228,22,52,183,57,160,163,58,
>
> 19,137,23,196,227,0,162,84,63,125,9,207,131,174,159,
>
> 197,51,143,107,224,74,89,118,135,8,162,250,107,152,
>
> 233,175,254,12,36,162,63,121,205,160,58,60,163,103,
>
> 212,231,102,14,157,161,192,155,23,217,153,183,146,150,
>
> 198,81,148,241,140,57,36,113,201,160,81,190,4,140,190,
>
> 234,52,122,187,177,164,45,138,245,2,3,1,0,1,163,123,
>
> 48,121,48,9,6,3,85,29,19,4,2,48,0,48,44,6,9,96,134,72,
>
> 1,134,248,66,1,13,4,31,22,29,79,112,101,110,83,83,76,
>
> 32,71,101,110,101,114,97,116,101,100,32,67,101,114,
>
> 116,105,102,105,99,97,116,101,48,29,6,3,85,29,14,4,22,
>
> 4,20,30,163,76,66,22,35,196,245,114,67,145,3,129,158,
>
> 205,188,152,198,214,239,48,31,6,3,85,29,35,4,24,48,22,
>
> 128,20,74,125,159,10,23,104,229,44,16,230,52,190,136,
>
> 184,75,134,99,74,93,111,48,13,6,9,42,134,72,134,247,
>
> 13,1,1,5,5,0,3,129,129,0,35,27,161,84,35,175,31,46,
>
> 253,249,55,130,95,236,71,75,91,3,69,159,252,215,18,
>
> 216,60,236,203,103,51,157,216,21,80,1,184,74,166,254,
>
> 133,248,39,209,218,128,201,66,160,133,26,227,220,144,
>
> 220,99,22,36,176,99,200,146,80,223,63,54,91,239,34,
>
> 119,246,93,122,235,30,89,136,140,225,167,192,128,85,
>
> 211,239,71,20,115,159,14,107,103,6,151,122,202,242,94,
>
> 237,99,85,38,113,78,189,204,97,151,100,27,162,154,0,
>
> 205,45,247,79,152,148,98,217,80,111,31,2,39,49,208,23,
>
> 254,0,2,124,48,130,2,120,48,130,1,225,160,3,2,1,2,2,9,
>
> 0,235,233,83,76,182,123,146,120,48,13,6,9,42,134,72,
>
> 134,247,13,1,1,5,5,0,48,85,49,11,48,9,6,3,85,4,6,19,2,
>
> 85,83,49,14,48,12,6,3,85,4,8,12,5,84,101,120,97,115,
>
> 49,19,48,17,6,3,85,4,10,12,10,78,105,110,101,32,78,
>
> 105,110,101,115,49,15,48,13,6,3,85,4,11,12,6,67,111,
>
> 119,98,111,121,49,16,48,14,6,3,85,4,3,12,7,82,79,79,
>
> 84,32,67,65,48,30,23,13,49,51,48,50,50,56,48,53,49,48,
>
> 48,49,90,23,13,51,51,48,50,50,51,48,53,49,48,48,49,90,
>
> 48,85,49,11,48,9,6,3,85,4,6,19,2,85,83,49,14,48,12,6,
>
> 3,85,4,8,12,5,84,101,120,97,115,49,19,48,17,6,3,85,4,
>
> 10,12,10,78,105,110,101,32,78,105,110,101,115,49,15,
>
> 48,13,6,3,85,4,11,12,6,67,111,119,98,111,121,49,16,48,
>
> 14,6,3,85,4,3,12,7,82,79,79,84,32,67,65,48,129,159,48,
>
> 13,6,9,42,134,72,134,247,13,1,1,1,5,0,3,129,141,0,48,
>
> 129,137,2,129,129,0,204,230,99,181,44,211,172,163,201,
>
> 70,233,171,3,241,34,255,177,135,248,55,87,188,30,211,
>
> 176,165,11,209,132,98,123,235,220,228,47,116,13,99,20,
>
> 65,220,112,192,84,82,52,104,67,192,207,119,171,146,
>
> 200,174,84,146,44,64,6,205,60,78,222,65,221,91,39,24,
>
> 170,244,12,131,126,32,238,18,55,99,228,152,26,136,83,
>
> 240,77,220,167,92,192,222,185,96,218,247,136,205,10,
>
> 176,165,158,22,208,25,117,140,120,9,169,23,237,17,27,
>
> 59,76,35,43,109,0,31,124,82,6,125,238,20,104,129,2,3,
>
> 1,0,1,163,80,48,78,48,29,6,3,85,29,14,4,22,4,20,74,
>
> 125,159,10,23,104,229,44,16,230,52,190,136,184,75,134,
>
> 99,74,93,111,48,31,6,3,85,29,35,4,24,48,22,128,20,74,
>
> 125,159,10,23,104,229,44,16,230,52,190,136,184,75,134,
>
> 99,74,93,111,48,12,6,3,85,29,19,4,5,48,3,1,1,255,48,
>
> 13,6,9,42,134,72,134,247,13,1,1,5,5,0,3,129,129,0,109,
>
> 72,210,64,113,94,34,228,51,86,251,174,93,179,60,184,
>
> 179,68,70,32,214,111,154,141,190,171,91,51,206,6,14,
>
> 147,94,59,249,240,23,190,31,139,106,160,114,11,252,
>
> 207,220,174,44,94,195,151,166,126,208,100,184,1,163,
>
> 136,163,33,108,138,36,142,246,167,104,244,194,87,197,
>
> 58,28,123,205,191,63,92,235,193,233,17,37,155,119,238,
>
> 122,112,122,159,177,46,87,8,170,117,58,149,185,181,
>
> 178,246,81,6,41,20,163,15,226,169,155,191,113,26,164,
>                           23,207,62,100,133,48,22,245,139,96,8>>,
>
> <<2,0,0,83,3,0,82,244,225,40,43,69,20,224,136,14,240,93,
>
> 225,76,191,156,202,163,215,89,28,56,98,213,12,49,173,
>
> 48,191,102,81,223,32,104,211,174,230,197,6,57,224,137,
>
> 46,198,34,208,111,149,153,186,243,247,151,78,31,200,
>
> 228,94,87,239,178,48,249,204,99,192,40,0,0,11,0,11,0,
>                           2,1,0,255,1,0,1,0>>,
>                         [1,
>                          <<0,0,245>>,
>
> <<3,3,82,244,225,40,177,238,52,250,53,57,12,72,96,92,
>
> 157,86,51,250,227,239,173,167,250,154,25,29,237,89,
>
> 176,188,61,181,0,0,88,0,255,192,36,192,40,192,38,
>
> 192,42,0,107,0,106,0,61,192,35,192,39,192,37,192,
>
> 41,0,103,0,64,0,60,192,10,192,20,0,57,0,56,192,5,
>
> 192,15,0,53,192,8,192,18,0,22,0,19,192,3,192,13,0,
>
> 10,192,9,192,19,0,51,0,50,192,4,192,14,0,47,192,7,
>
> 192,17,0,5,0,4,0,21,192,2,192,12,0,9,1,0,0,116,0,0,
>
> 0,14,0,12,0,0,9,108,111,99,97,108,104,111,115,116,
>
> 0,10,0,58,0,56,0,14,0,13,0,25,0,28,0,11,0,12,0,27,
>
> 0,24,0,9,0,10,0,26,0,22,0,23,0,8,0,6,0,7,0,20,0,21,
>
> 0,4,0,5,0,18,0,19,0,1,0,2,0,3,0,15,0,16,0,17,0,11,
>
> 0,2,1,0,0,13,0,26,0,24,6,3,6,1,5,3,5,1,4,3,4,1,3,3,
>                            3,1,2,3,2,1,2,2,1,1>>]],
>
> [<<2,0,0,83,3,0,82,244,225,40,43,69,20,224,136,14,240,93,
>
> 225,76,191,156,202,163,215,89,28,56,98,213,12,49,173,
>
> 48,191,102,81,223,32,104,211,174,230,197,6,57,224,137,
>
> 46,198,34,208,111,149,153,186,243,247,151,78,31,200,
>
> 228,94,87,239,178,48,249,204,99,192,40,0,0,11,0,11,0,
>                           2,1,0,255,1,0,1,0>>,
>                         [1,
>                          <<0,0,245>>,
>                          <<3,3,82,244,225,40,177,238,52,250,53,57,12,72,96,
>                            92,157,86,51,250,227,239,173,167,250,154,25,29,
>
> 237,89,176,188,61,181,0,0,88,0,255,192,36,192,40,
>
> 192,38,192,42,0,107,0,106,0,61,192,35,192,39,192,
>
> 37,192,41,0,103,0,64,0,60,192,10,192,20,0,57,0,56,
>                            192,5,192,15,0,53,192,8,192,18,0,22,0,19,192,3,
>
> 192,13,0,10,192,9,192,19,0,51,0,50,192,4,192,14,0,
>
> 47,192,7,192,17,0,5,0,4,0,21,192,2,192,12,0,9,1,0,
>                            0,116,0,0,0,14,0,12,0,0,9,108,111,99,97,108,104,
>
> 111,115,116,0,10,0,58,0,56,0,14,0,13,0,25,0,28,0,
>
> 11,0,12,0,27,0,24,0,9,0,10,0,26,0,22,0,23,0,8,0,6,
>
> 0,7,0,20,0,21,0,4,0,5,0,18,0,19,0,1,0,2,0,3,0,15,
>
> 0,16,0,17,0,11,0,2,1,0,0,13,0,26,0,24,6,3,6,1,5,3,
>                            5,1,4,3,4,1,3,3,3,1,2,3,2,1,2,2,1,1>>]]},
>                       16400,
>                       {session,
>
> <<104,211,174,230,197,6,57,224,137,46,198,34,208,111,
>
> 149,153,186,243,247,151,78,31,200,228,94,87,239,178,
>                             48,249,204,99>>,
>
> <<48,130,2,165,48,130,2,14,160,3,2,1,2,2,9,0,235,233,
>
> 83,76,182,123,146,121,48,13,6,9,42,134,72,134,247,
>
> 13,1,1,5,5,0,48,85,49,11,48,9,6,3,85,4,6,19,2,85,83,
>
> 49,14,48,12,6,3,85,4,8,12,5,84,101,120,97,115,49,19,
>
> 48,17,6,3,85,4,10,12,10,78,105,110,101,32,78,105,
>
> 110,101,115,49,15,48,13,6,3,85,4,11,12,6,67,111,119,
>
> 98,111,121,49,16,48,14,6,3,85,4,3,12,7,82,79,79,84,
>
> 32,67,65,48,30,23,13,49,51,48,50,50,56,48,53,50,51,
>
> 51,52,90,23,13,51,51,48,50,50,51,48,53,50,51,51,52,
>
> 90,48,87,49,11,48,9,6,3,85,4,6,19,2,85,83,49,14,48,
>
> 12,6,3,85,4,8,12,5,84,101,120,97,115,49,19,48,17,6,
>
> 3,85,4,10,12,10,78,105,110,101,32,78,105,110,101,
>
> 115,49,15,48,13,6,3,85,4,11,12,6,67,111,119,98,111,
>
> 121,49,18,48,16,6,3,85,4,3,12,9,108,111,99,97,108,
>
> 104,111,115,116,48,129,159,48,13,6,9,42,134,72,134,
>
> 247,13,1,1,1,5,0,3,129,141,0,48,129,137,2,129,129,0,
>
> 205,181,181,26,49,2,204,117,28,253,100,147,168,184,
>
> 128,26,168,194,53,199,17,230,198,149,75,236,168,207,
>
> 100,143,70,26,104,201,253,63,168,26,215,228,22,52,
>
> 183,57,160,163,58,19,137,23,196,227,0,162,84,63,125,
>
> 9,207,131,174,159,197,51,143,107,224,74,89,118,135,
>
> 8,162,250,107,152,233,175,254,12,36,162,63,121,205,
>
> 160,58,60,163,103,212,231,102,14,157,161,192,155,23,
>
> 217,153,183,146,150,198,81,148,241,140,57,36,113,
>
> 201,160,81,190,4,140,190,234,52,122,187,177,164,45,
>
> 138,245,2,3,1,0,1,163,123,48,121,48,9,6,3,85,29,19,
>
> 4,2,48,0,48,44,6,9,96,134,72,1,134,248,66,1,13,4,31,
>
> 22,29,79,112,101,110,83,83,76,32,71,101,110,101,114,
>
> 97,116,101,100,32,67,101,114,116,105,102,105,99,97,
>
> 116,101,48,29,6,3,85,29,14,4,22,4,20,30,163,76,66,
>
> 22,35,196,245,114,67,145,3,129,158,205,188,152,198,
>
> 214,239,48,31,6,3,85,29,35,4,24,48,22,128,20,74,125,
>
> 159,10,23,104,229,44,16,230,52,190,136,184,75,134,
>
> 99,74,93,111,48,13,6,9,42,134,72,134,247,13,1,1,5,5,
>
> 0,3,129,129,0,35,27,161,84,35,175,31,46,253,249,55,
>
> 130,95,236,71,75,91,3,69,159,252,215,18,216,60,236,
>
> 203,103,51,157,216,21,80,1,184,74,166,254,133,248,
>
> 39,209,218,128,201,66,160,133,26,227,220,144,220,99,
>
> 22,36,176,99,200,146,80,223,63,54,91,239,34,119,246,
>
> 93,122,235,30,89,136,140,225,167,192,128,85,211,239,
>
> 71,20,115,159,14,107,103,6,151,122,202,242,94,237,
>
> 99,85,38,113,78,189,204,97,151,100,27,162,154,0,205,
>
> 45,247,79,152,148,98,217,80,111,31,2,39,49,208,23,
>                             254>>,
>                           undefined,0,<<"À(">>,undefined,undefined,new,
>                           63559002936,undefined},
>                       28691,ssl_session_cache,
>                       {3,0},
>                       false,ecdhe_rsa,
>                       {undefined,undefined},
>                       undefined,
>                       {{1,2,840,113549,1,1,1},
>                        {'RSAPublicKey',
>
> 144454330320215406279953568628491651436272064667760200600239478371082943052406671504117055906783067021801616968245536600804524397616119868619607006483647544685500850941126623013107537763694736146580312576904568190966271012889302320531771708303887413277040358538410888392437638452540396352971161638449355524853,
>
>                            65537},
>                        'NULL'},
>                       undefined,undefined,undefined,undefined,undefined,
>
> undefined,undefined,20497,#Ref<0.0.0.977>,undefined,<<>>,
>                       {false,first},
>                       {<0.33.0>,#Ref<0.0.0.968>},
>                       undefined,
>                       {[],[]},
>                       false,true,false,undefined,undefined}
> ** Reason for termination =
> ** {bad_return_value,{alert,2,51,{"ssl_connection.erl",420}}}
> ** exception exit:
> {{bad_return_value,{alert,2,51,{"ssl_connection.erl",420}}},
>                      {gen_fsm,sync_send_all_state_event,
>                               [<0.74.0>,{start,infinity},infinity]}}
>       in function  gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl,
> line 240)
>       in call from ssl_connection:sync_send_all_state_event/2
> (ssl_connection.erl, line 1630)
>       in call from ssl_connection:handshake/2 (ssl_connection.erl, line 96)
>       in call from tls_connection:start_fsm/8 (tls_connection.erl, line 81)
>       in call from ssl_connection:connect/8 (ssl_connection.erl, line 67)
> 6> sslv3bug_2:server().
> <0.78.0>
> 7> sslv3bug_2:client().
> ** exception exit: {{{case_clause,{4}},
>
> [{ssl_v3,mac_hash,3,[{file,"ssl_v3.erl"},{line,163}]},
>                        {tls_record,encode_plain_text,4,
>                                    [{file,"tls_record.erl"},{line,134}]},
>                        {tls_connection,encode_handshake,4,
>                                        [{file,"tls_connection.erl"},
>                                         {line,362}]},
>                        {tls_connection,send_handshake,2,
>                                        [{file,"tls_connection.erl"},
>                                         {line,108}]},
>                        {ssl_connection,client_certify_and_key_exchange,2,
>                                        [{file,"ssl_connection.erl"},
>                                         {line,1038}]},
>                        {tls_connection,next_state,4,
>                                        [{file,"tls_connection.erl"},
>                                         {line,458}]},
>
> {gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},
>                        {proc_lib,init_p_do_apply,3,
>                                  [{file,"proc_lib.erl"},{line,239}]}]},
>                      {gen_fsm,sync_send_all_state_event,
>                               [<0.81.0>,{start,infinity},infinity]}}
>       in function  gen_fsm:sync_send_all_state_event/3 (gen_fsm.erl,
> line 240)
>       in call from ssl_connection:sync_send_all_state_event/2
> (ssl_connection.erl, line 1630)
>       in call from ssl_connection:handshake/2 (ssl_connection.erl, line 96)
>       in call from tls_connection:start_fsm/8 (tls_connection.erl, line 81)
>       in call from ssl_connection:connect/8 (ssl_connection.erl, line 67)
> 8>
> =ERROR REPORT==== 7-Feb-2014::14:35:59 ===
> ** State machine <0.81.0> terminating
> ** Last message in was {tcp,#Port<0.2911>,
>
> <<255,201,15,218,162,33,104,194,52,196,198,98,139,
>
> 128,220,28,209,41,2,78,8,138,103,204,116,2,11,
>
> 190,166,59,19,155,34,81,74,8,121,142,52,4,221,
>
> 239,149,25,179,205,58,67,27,48,43,10,109,242,95,
>
> 20,55,79,225,53,109,109,81,194,69,228,133,181,
>
> 118,98,94,126,198,244,76,66,233,166,55,237,107,
>
> 11,255,92,182,244,6,183,237,238,56,107,251,90,
>
> 137,159,165,174,159,36,17,124,75,31,230,73,40,
>
> 102,81,236,230,83,129,255,255,255,255,255,255,
>
> 255,255,0,1,2,0,128,216,166,31,174,121,159,156,
>
> 152,74,250,106,59,107,235,224,100,58,223,33,83,
>
> 118,28,193,65,121,227,4,83,159,162,248,251,156,
>
> 228,77,141,104,34,249,116,173,104,186,118,133,
>
> 43,79,55,213,103,22,79,162,165,3,251,2,252,106,
>
> 104,78,101,255,40,203,145,80,207,182,133,98,55,
>
> 49,1,80,68,54,12,31,138,6,235,74,72,16,106,4,17,
>
> 92,123,162,154,192,198,115,233,224,185,226,144,
>
> 225,241,68,141,237,16,159,212,2,60,232,186,100,
>
> 159,38,105,250,242,33,153,95,246,14,177,170,244,
>
> 86,41,0,47,48,45,2,20,78,183,247,114,172,238,
>
> 108,236,172,199,38,160,32,215,236,141,241,69,
>
> 232,195,2,21,0,206,237,39,58,180,66,46,147,245,
>
> 175,250,151,208,4,205,60,242,87,255,177,22,3,0,
>                                0,4,14,0,0,0>>}
> ** When State == certify
> **      Data  == {state,client,
>                       {#Ref<0.0.0.1012>,<0.76.0>},
>                       gen_tcp,tls_connection,tcp,tcp_closed,tcp_error,
>                       "localhost",44443,#Port<0.2911>,
>                       {ssl_options,undefined,
>                           [{3,3},{3,2},{3,1},{3,0}],
>                           verify_none,
>                           {#Fun<ssl.1.40440964>,[]},
>                           false,false,undefined,1,<<>>,undefined,<<>>,
>                           undefined,undefined,undefined,<<>>,undefined,
>                           undefined,undefined,undefined,undefined,
>                           [<<"À$">>,<<"À(">>,<<"À&">>,<<"À*">>,
>                            <<0,107>>,
>                            <<0,106>>,
>                            <<0,61>>,
>                            <<"À#">>,<<"À'">>,<<"À%">>,<<"À)">>,
>                            <<0,103>>,
>                            <<0,64>>,
>                            <<0,60>>,
>                            <<"À\n">>,
>                            <<192,20>>,
>                            <<0,57>>,
>                            <<0,56>>,
>                            <<192,5>>,
>                            <<192,15>>,
>                            <<0,53>>,
>                            <<"À\b">>,
>                            <<192,18>>,
>                            <<0,22>>,
>                            <<0,19>>,
>                            <<192,3>>,
>                            <<"À\r">>,
>                            <<0,10>>,
>                            <<"À\t">>,
>                            <<192,19>>,
>                            <<0,51>>,
>                            <<0,50>>,
>                            <<192,4>>,
>                            <<192,14>>,
>                            <<0,47>>,
>                            <<192,7>>,
>                            <<192,17>>,
>                            <<0,5>>,
>                            <<0,4>>,
>                            <<0,21>>,
>                            <<192,2>>,
>                            <<"À\f">>,
>                            <<0,9>>],
>
> #Fun<ssl.0.40440964>,true,268435456,false,undefined,
>
> undefined,false,undefined,undefined,true,undefined,
>                           false},
>                       {socket_options,list,0,0,0,true},
>                       {connection_states,
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,0>>,
>
> 1,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
>                                   undefined,undefined},
>
> undefined,undefined,undefined,undefined,2,true,
>                               undefined,undefined},
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,106>>,
>                                   1,7,1,16,256,32,unknown,4,4711,32,0,
>                                   undefined,
>
> <<82,244,225,63,101,215,80,75,202,30,236,75,
>
> 214,92,173,239,61,137,174,226,135,182,38,
>                                     168,60,36,24,219,50,94,16,198>>,
>
> <<82,244,225,63,188,177,3,238,107,25,107,72,
>
> 243,243,32,133,171,156,145,181,53,121,188,
>                                     56,69,37,1,65,127,169,225,11>>,
>                                   undefined},
>                               undefined,undefined,undefined,undefined,
>                               undefined,true,undefined,undefined},
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,0>>,
>
> 1,0,0,0,0,0,0,0,0,0,0,undefined,undefined,
>                                   undefined,undefined},
>
> undefined,undefined,undefined,undefined,1,true,
>                               undefined,undefined},
>                           {connection_state,
>                               {security_parameters,
>                                   <<0,106>>,
>                                   1,7,1,16,256,32,unknown,4,4711,32,0,
>                                   undefined,
>
> <<82,244,225,63,101,215,80,75,202,30,236,75,
>
> 214,92,173,239,61,137,174,226,135,182,38,
>                                     168,60,36,24,219,50,94,16,198>>,
>
> <<82,244,225,63,188,177,3,238,107,25,107,72,
>
> 243,243,32,133,171,156,145,181,53,121,188,
>                                     56,69,37,1,65,127,169,225,11>>,
>                                   undefined},
>                               undefined,undefined,undefined,undefined,
>                               undefined,true,undefined,undefined}},
>                       {protocol_buffers,[],
>
> <<22,3,0,1,60,12,0,1,56,0,128,255,255,255,255,255,255,
>                             255>>,
>                           <<>>,[]},
>
> {[<<11,0,5,153,0,5,150,0,5,147,48,130,5,143,48,130,4,41,
>
> 160,3,2,1,2,2,6,0,168,88,141,229,65,48,130,1,44,6,7,
>
> 42,134,72,206,56,4,3,48,130,1,31,2,129,129,0,232,148,
>
> 166,31,193,7,156,37,221,185,181,134,210,206,133,125,
>
> 228,157,66,197,142,159,163,53,134,75,44,121,95,112,
>
> 171,141,10,111,6,104,28,68,249,89,51,210,135,202,124,
>
> 137,39,248,58,33,142,102,238,53,87,191,54,173,119,76,
>
> 14,129,52,149,215,77,223,78,247,64,247,138,164,116,37,
>
> 226,84,65,234,101,56,68,165,160,128,238,161,159,24,
>
> 216,48,172,183,209,100,143,141,107,100,45,29,108,193,
>
> 215,105,37,171,150,125,122,202,252,36,144,93,68,243,
>
> 192,32,114,86,101,122,253,217,161,54,81,2,21,0,214,
>
> 110,187,124,141,25,20,86,167,217,74,223,208,214,158,
>
> 82,129,45,229,129,2,129,129,0,145,148,122,39,49,43,61,
>
> 30,153,81,106,86,228,252,211,63,233,231,52,125,126,
>
> 210,184,201,77,113,188,219,174,151,155,7,34,93,62,234,
>
> 185,143,184,96,42,159,6,159,4,210,162,131,209,153,105,
>
> 125,172,202,235,169,97,78,193,237,51,92,122,0,44,226,
>
> 15,154,4,66,171,170,119,180,104,229,6,197,143,62,152,
>
> 192,216,215,209,189,218,27,42,199,48,112,73,125,55,
>
> 156,44,47,95,167,75,90,70,97,42,109,255,161,229,57,
>
> 246,0,172,207,230,62,211,188,197,8,250,139,25,71,57,
>
> 132,252,175,48,123,49,32,48,30,6,9,42,134,72,134,247,
>
> 13,1,9,1,22,17,82,111,111,116,67,65,64,101,114,108,97,
>
> 110,103,46,111,114,103,49,15,48,13,6,3,85,4,3,19,6,82,
>
> 111,111,116,67,65,49,18,48,16,6,3,85,4,7,19,9,83,116,
>
> 111,99,107,104,111,108,109,49,11,48,9,6,3,85,4,6,19,2,
>
> 83,69,49,15,48,13,6,3,85,4,10,19,6,101,114,108,97,110,
>
> 103,49,20,48,18,6,3,85,4,11,19,11,116,101,115,116,105,
>
> 110,103,32,100,101,112,48,34,24,15,50,48,49,52,48,50,
>
> 48,54,48,48,48,48,48,48,90,24,15,50,48,49,52,48,50,49,
>
> 52,48,48,48,48,48,48,90,48,121,49,31,48,29,6,9,42,134,
>
> 72,134,247,13,1,9,1,22,16,101,115,115,101,110,64,101,
>
> 114,108,97,110,103,46,111,114,103,49,14,48,12,6,3,85,
>
> 4,3,19,5,101,115,115,101,110,49,18,48,16,6,3,85,4,7,
>
> 19,9,83,116,111,99,107,104,111,108,109,49,11,48,9,6,3,
>
> 85,4,6,19,2,83,69,49,15,48,13,6,3,85,4,10,19,6,101,
>
> 114,108,97,110,103,49,20,48,18,6,3,85,4,11,19,11,116,
>
> 101,115,116,105,110,103,32,100,101,112,48,130,1,183,
>
> 48,130,1,43,6,7,42,134,72,206,56,4,1,48,130,1,30,2,
>
> 129,129,0,172,20,101,160,1,130,221,238,24,42,170,3,17,
>
> 62,230,231,15,182,23,122,127,202,54,148,36,32,27,64,
>
> 221,180,126,41,187,207,133,60,140,0,116,50,56,250,210,
>
> 130,36,42,1,0,254,74,15,125,231,23,199,145,185,91,88,
>
> 223,179,52,215,22,36,165,226,0,4,236,135,79,246,221,
>
> 81,124,230,72,58,212,233,186,42,201,32,47,115,113,22,
>
> 251,228,179,170,88,91,55,151,16,150,103,0,88,136,40,
>
> 89,52,202,162,205,187,89,154,57,76,34,101,146,109,244,
>
> 232,72,134,127,42,102,7,189,43,2,21,0,213,146,169,239,
>
> 217,145,225,127,111,174,189,211,177,222,47,248,104,29,
>
> 27,237,2,129,128,16,109,41,186,123,49,80,129,242,62,
>
> 70,145,216,15,131,72,58,194,148,147,221,175,54,65,123,
>
> 227,5,114,111,40,176,249,196,244,205,13,12,7,135,99,
>
> 54,234,160,44,233,6,117,17,196,162,142,213,141,109,
>
> 141,148,108,149,217,138,200,100,108,254,98,41,241,147,
>
> 214,217,252,186,131,40,26,118,255,17,241,219,101,166,
>
> 161,62,43,20,24,120,204,242,70,63,190,208,134,173,160,
>
> 196,206,225,255,223,8,180,115,245,128,7,193,136,7,151,
>
> 36,154,246,240,187,218,72,139,23,18,21,7,129,20,230,
>
> 72,3,129,133,0,2,129,129,0,152,168,223,43,127,77,1,
>
> 215,72,34,80,184,125,73,66,28,78,154,60,68,31,82,235,
>
> 252,250,73,183,249,83,189,159,48,60,60,11,88,52,57,55,
>
> 84,243,40,204,232,50,91,126,196,126,2,122,90,71,151,
>
> 148,135,145,192,163,23,244,154,184,151,79,14,206,64,
>
> 64,35,67,18,185,8,91,8,83,21,25,76,69,76,247,134,107,
>
> 112,103,204,60,192,28,158,224,106,64,18,14,43,24,212,
>
> 137,199,141,103,252,93,241,32,110,212,33,89,251,137,
>
> 28,144,197,212,76,219,135,208,21,252,243,184,104,67,
>
> 163,19,48,17,48,15,6,3,85,29,19,1,1,255,4,5,48,3,1,1,
>
> 255,48,130,1,44,6,7,42,134,72,206,56,4,3,48,130,1,31,
>
> 2,129,129,0,232,148,166,31,193,7,156,37,221,185,181,
>
> 134,210,206,133,125,228,157,66,197,142,159,163,53,134,
>
> 75,44,121,95,112,171,141,10,111,6,104,28,68,249,89,51,
>
> 210,135,202,124,137,39,248,58,33,142,102,238,53,87,
>
> 191,54,173,119,76,14,129,52,149,215,77,223,78,247,64,
>
> 247,138,164,116,37,226,84,65,234,101,56,68,165,160,
>
> 128,238,161,159,24,216,48,172,183,209,100,143,141,107,
>
> 100,45,29,108,193,215,105,37,171,150,125,122,202,252,
>
> 36,144,93,68,243,192,32,114,86,101,122,253,217,161,54,
>
> 81,2,21,0,214,110,187,124,141,25,20,86,167,217,74,223,
>
> 208,214,158,82,129,45,229,129,2,129,129,0,145,148,122,
>
> 39,49,43,61,30,153,81,106,86,228,252,211,63,233,231,
>
> 52,125,126,210,184,201,77,113,188,219,174,151,155,7,
>
> 34,93,62,234,185,143,184,96,42,159,6,159,4,210,162,
>
> 131,209,153,105,125,172,202,235,169,97,78,193,237,51,
>
> 92,122,0,44,226,15,154,4,66,171,170,119,180,104,229,6,
>
> 197,143,62,152,192,216,215,209,189,218,27,42,199,48,
>
> 112,73,125,55,156,44,47,95,167,75,90,70,97,42,109,255,
>
> 161,229,57,246,0,172,207,230,62,211,188,197,8,250,139,
>
> 25,71,57,132,252,175,3,48,0,48,45,2,21,0,182,82,58,
>
> 106,122,13,155,122,152,41,77,231,69,191,61,48,195,179,
>
> 189,65,2,20,18,41,247,30,218,157,162,131,0,182,220,
>                           145,199,117,186,83,112,21,220,12>>,
>
> <<2,0,0,83,3,0,82,244,225,63,188,177,3,238,107,25,107,
>
> 72,243,243,32,133,171,156,145,181,53,121,188,56,69,37,
>
> 1,65,127,169,225,11,32,190,94,115,98,18,255,115,139,
>
> 99,87,33,75,186,233,22,47,165,75,129,175,177,99,152,
>
> 60,150,43,93,150,146,202,73,169,0,106,0,0,11,0,11,0,2,
>                           1,0,255,1,0,1,0>>,
>                         [1,
>                          <<0,0,245>>,
>
> <<3,3,82,244,225,63,101,215,80,75,202,30,236,75,214,
>
> 92,173,239,61,137,174,226,135,182,38,168,60,36,24,
>
> 219,50,94,16,198,0,0,88,0,255,192,36,192,40,192,38,
>
> 192,42,0,107,0,106,0,61,192,35,192,39,192,37,192,
>
> 41,0,103,0,64,0,60,192,10,192,20,0,57,0,56,192,5,
>
> 192,15,0,53,192,8,192,18,0,22,0,19,192,3,192,13,0,
>
> 10,192,9,192,19,0,51,0,50,192,4,192,14,0,47,192,7,
>
> 192,17,0,5,0,4,0,21,192,2,192,12,0,9,1,0,0,116,0,0,
>
> 0,14,0,12,0,0,9,108,111,99,97,108,104,111,115,116,
>
> 0,10,0,58,0,56,0,14,0,13,0,25,0,28,0,11,0,12,0,27,
>
> 0,24,0,9,0,10,0,26,0,22,0,23,0,8,0,6,0,7,0,20,0,21,
>
> 0,4,0,5,0,18,0,19,0,1,0,2,0,3,0,15,0,16,0,17,0,11,
>
> 0,2,1,0,0,13,0,26,0,24,6,3,6,1,5,3,5,1,4,3,4,1,3,3,
>                            3,1,2,3,2,1,2,2,1,1>>]],
>
> [<<2,0,0,83,3,0,82,244,225,63,188,177,3,238,107,25,107,
>
> 72,243,243,32,133,171,156,145,181,53,121,188,56,69,37,
>
> 1,65,127,169,225,11,32,190,94,115,98,18,255,115,139,
>
> 99,87,33,75,186,233,22,47,165,75,129,175,177,99,152,
>
> 60,150,43,93,150,146,202,73,169,0,106,0,0,11,0,11,0,2,
>                           1,0,255,1,0,1,0>>,
>                         [1,
>                          <<0,0,245>>,
>
> <<3,3,82,244,225,63,101,215,80,75,202,30,236,75,214,
>
> 92,173,239,61,137,174,226,135,182,38,168,60,36,24,
>                            219,50,94,16,198,0,0,88,0,255,192,36,192,40,192,
>                            38,192,42,0,107,0,106,0,61,192,35,192,39,192,37,
>                            192,41,0,103,0,64,0,60,192,10,192,20,0,57,0,56,
>                            192,5,192,15,0,53,192,8,192,18,0,22,0,19,192,3,
>
> 192,13,0,10,192,9,192,19,0,51,0,50,192,4,192,14,0,
>
> 47,192,7,192,17,0,5,0,4,0,21,192,2,192,12,0,9,1,0,
>                            0,116,0,0,0,14,0,12,0,0,9,108,111,99,97,108,104,
>
> 111,115,116,0,10,0,58,0,56,0,14,0,13,0,25,0,28,0,
>
> 11,0,12,0,27,0,24,0,9,0,10,0,26,0,22,0,23,0,8,0,6,
>
> 0,7,0,20,0,21,0,4,0,5,0,18,0,19,0,1,0,2,0,3,0,15,
>
> 0,16,0,17,0,11,0,2,1,0,0,13,0,26,0,24,6,3,6,1,5,3,
>                            5,1,4,3,4,1,3,3,3,1,2,3,2,1,2,2,1,1>>]]},
>                       16400,
>                       {session,
>
> <<190,94,115,98,18,255,115,139,99,87,33,75,186,233,22,
>
> 47,165,75,129,175,177,99,152,60,150,43,93,150,146,
>                             202,73,169>>,
>
> <<48,130,5,143,48,130,4,41,160,3,2,1,2,2,6,0,168,88,
>
> 141,229,65,48,130,1,44,6,7,42,134,72,206,56,4,3,48,
>
> 130,1,31,2,129,129,0,232,148,166,31,193,7,156,37,
>
> 221,185,181,134,210,206,133,125,228,157,66,197,142,
>
> 159,163,53,134,75,44,121,95,112,171,141,10,111,6,
>
> 104,28,68,249,89,51,210,135,202,124,137,39,248,58,
>
> 33,142,102,238,53,87,191,54,173,119,76,14,129,52,
>
> 149,215,77,223,78,247,64,247,138,164,116,37,226,84,
>
> 65,234,101,56,68,165,160,128,238,161,159,24,216,48,
>
> 172,183,209,100,143,141,107,100,45,29,108,193,215,
>
> 105,37,171,150,125,122,202,252,36,144,93,68,243,192,
>
> 32,114,86,101,122,253,217,161,54,81,2,21,0,214,110,
>
> 187,124,141,25,20,86,167,217,74,223,208,214,158,82,
>
> 129,45,229,129,2,129,129,0,145,148,122,39,49,43,61,
>
> 30,153,81,106,86,228,252,211,63,233,231,52,125,126,
>
> 210,184,201,77,113,188,219,174,151,155,7,34,93,62,
>
> 234,185,143,184,96,42,159,6,159,4,210,162,131,209,
>
> 153,105,125,172,202,235,169,97,78,193,237,51,92,122,
>
> 0,44,226,15,154,4,66,171,170,119,180,104,229,6,197,
>
> 143,62,152,192,216,215,209,189,218,27,42,199,48,112,
>
> 73,125,55,156,44,47,95,167,75,90,70,97,42,109,255,
>
> 161,229,57,246,0,172,207,230,62,211,188,197,8,250,
>
> 139,25,71,57,132,252,175,48,123,49,32,48,30,6,9,42,
>
> 134,72,134,247,13,1,9,1,22,17,82,111,111,116,67,65,
>
> 64,101,114,108,97,110,103,46,111,114,103,49,15,48,
>
> 13,6,3,85,4,3,19,6,82,111,111,116,67,65,49,18,48,16,
>
> 6,3,85,4,7,19,9,83,116,111,99,107,104,111,108,109,
>
> 49,11,48,9,6,3,85,4,6,19,2,83,69,49,15,48,13,6,3,85,
>
> 4,10,19,6,101,114,108,97,110,103,49,20,48,18,6,3,85,
>
> 4,11,19,11,116,101,115,116,105,110,103,32,100,101,
>
> 112,48,34,24,15,50,48,49,52,48,50,48,54,48,48,48,48,
>
> 48,48,90,24,15,50,48,49,52,48,50,49,52,48,48,48,48,
>
> 48,48,90,48,121,49,31,48,29,6,9,42,134,72,134,247,
>
> 13,1,9,1,22,16,101,115,115,101,110,64,101,114,108,
>
> 97,110,103,46,111,114,103,49,14,48,12,6,3,85,4,3,19,
>
> 5,101,115,115,101,110,49,18,48,16,6,3,85,4,7,19,9,
>
> 83,116,111,99,107,104,111,108,109,49,11,48,9,6,3,85,
>
> 4,6,19,2,83,69,49,15,48,13,6,3,85,4,10,19,6,101,114,
>
> 108,97,110,103,49,20,48,18,6,3,85,4,11,19,11,116,
>
> 101,115,116,105,110,103,32,100,101,112,48,130,1,183,
>
> 48,130,1,43,6,7,42,134,72,206,56,4,1,48,130,1,30,2,
>
> 129,129,0,172,20,101,160,1,130,221,238,24,42,170,3,
>
> 17,62,230,231,15,182,23,122,127,202,54,148,36,32,27,
>
> 64,221,180,126,41,187,207,133,60,140,0,116,50,56,
>
> 250,210,130,36,42,1,0,254,74,15,125,231,23,199,145,
>
> 185,91,88,223,179,52,215,22,36,165,226,0,4,236,135,
>
> 79,246,221,81,124,230,72,58,212,233,186,42,201,32,
>
> 47,115,113,22,251,228,179,170,88,91,55,151,16,150,
>
> 103,0,88,136,40,89,52,202,162,205,187,89,154,57,76,
>
> 34,101,146,109,244,232,72,134,127,42,102,7,189,43,2,
>
> 21,0,213,146,169,239,217,145,225,127,111,174,189,
>
> 211,177,222,47,248,104,29,27,237,2,129,128,16,109,
>
> 41,186,123,49,80,129,242,62,70,145,216,15,131,72,58,
>
> 194,148,147,221,175,54,65,123,227,5,114,111,40,176,
>
> 249,196,244,205,13,12,7,135,99,54,234,160,44,233,6,
>
> 117,17,196,162,142,213,141,109,141,148,108,149,217,
>
> 138,200,100,108,254,98,41,241,147,214,217,252,186,
>
> 131,40,26,118,255,17,241,219,101,166,161,62,43,20,
>
> 24,120,204,242,70,63,190,208,134,173,160,196,206,
>
> 225,255,223,8,180,115,245,128,7,193,136,7,151,36,
>
> 154,246,240,187,218,72,139,23,18,21,7,129,20,230,72,
>
> 3,129,133,0,2,129,129,0,152,168,223,43,127,77,1,215,
>
> 72,34,80,184,125,73,66,28,78,154,60,68,31,82,235,
>
> 252,250,73,183,249,83,189,159,48,60,60,11,88,52,57,
>
> 55,84,243,40,204,232,50,91,126,196,126,2,122,90,71,
>
> 151,148,135,145,192,163,23,244,154,184,151,79,14,
>
> 206,64,64,35,67,18,185,8,91,8,83,21,25,76,69,76,247,
>
> 134,107,112,103,204,60,192,28,158,224,106,64,18,14,
>
> 43,24,212,137,199,141,103,252,93,241,32,110,212,33,
>
> 89,251,137,28,144,197,212,76,219,135,208,21,252,243,
>
> 184,104,67,163,19,48,17,48,15,6,3,85,29,19,1,1,255,
>
> 4,5,48,3,1,1,255,48,130,1,44,6,7,42,134,72,206,56,4,
>
> 3,48,130,1,31,2,129,129,0,232,148,166,31,193,7,156,
>
> 37,221,185,181,134,210,206,133,125,228,157,66,197,
>
> 142,159,163,53,134,75,44,121,95,112,171,141,10,111,
>
> 6,104,28,68,249,89,51,210,135,202,124,137,39,248,58,
>
> 33,142,102,238,53,87,191,54,173,119,76,14,129,52,
>
> 149,215,77,223,78,247,64,247,138,164,116,37,226,84,
>
> 65,234,101,56,68,165,160,128,238,161,159,24,216,48,
>
> 172,183,209,100,143,141,107,100,45,29,108,193,215,
>
> 105,37,171,150,125,122,202,252,36,144,93,68,243,192,
>
> 32,114,86,101,122,253,217,161,54,81,2,21,0,214,110,
>
> 187,124,141,25,20,86,167,217,74,223,208,214,158,82,
>
> 129,45,229,129,2,129,129,0,145,148,122,39,49,43,61,
>
> 30,153,81,106,86,228,252,211,63,233,231,52,125,126,
>
> 210,184,201,77,113,188,219,174,151,155,7,34,93,62,
>
> 234,185,143,184,96,42,159,6,159,4,210,162,131,209,
>
> 153,105,125,172,202,235,169,97,78,193,237,51,92,122,
>
> 0,44,226,15,154,4,66,171,170,119,180,104,229,6,197,
>
> 143,62,152,192,216,215,209,189,218,27,42,199,48,112,
>
> 73,125,55,156,44,47,95,167,75,90,70,97,42,109,255,
>
> 161,229,57,246,0,172,207,230,62,211,188,197,8,250,
>
> 139,25,71,57,132,252,175,3,48,0,48,45,2,21,0,182,82,
>
> 58,106,122,13,155,122,152,41,77,231,69,191,61,48,
>
> 195,179,189,65,2,20,18,41,247,30,218,157,162,131,0,
>                             182,220,145,199,117,186,83,112,21,220,12>>,
>                           undefined,0,
>                           <<0,106>>,
>                           undefined,undefined,new,63559002959,undefined},
>                       28691,ssl_session_cache,
>                       {3,0},
>                       false,dhe_dss,
>                       {undefined,undefined},
>                       undefined,
>                       {{1,2,840,10040,4,1},
>
> 107201255589035901224095606533558326562411652347289232035103542030345159420839486230268504779574656171583558015264296286449883604707549621612623958146832751634671347771456676561935478712661717567833349731571068193127995126983390616249150208033231204136081889066713700820639352472736328354631788188647982393411,
>
>                        {'Dss-Parms',
>
> 120838457660118919847784105390049937477281231873987813527469753170393689289232527428167218258880467891327129458677867506421714970972002253380733557408691307378960985768079995491587653331614446765301506047915886847153350641972403963007845318607852639159131694882003981406543445440571784899938168852566501735723,
>
>
> 1219285746577471382994815749003130182104667462637,
>
> 11535022978489302833643653962713113424104775336555003172828907456342498068622451037206915043471103346423380726835531941532378578411298596088596278301950468270328767064787145526948017146253629314732272784540599889965624014006517245965850597974665875953436492876504607797788574892832624787243340450198197691976}},
>
>                       undefined,undefined,undefined,undefined,undefined,
>                       undefined,undefined,20497,#Ref<0.0.0.1014>,undefined,
>                       <<>>,
>                       {false,first},
>                       {<0.76.0>,#Ref<0.0.0.1008>},
>                       undefined,
>                       {[],[]},
>                       false,true,false,undefined,undefined}
> ** Reason for termination =
> ** {{case_clause,{4}},
>      [{ssl_v3,mac_hash,3,[{file,"ssl_v3.erl"},{line,163}]},
>
> {tls_record,encode_plain_text,4,[{file,"tls_record.erl"},{line,134}]},
>       {tls_connection,encode_handshake,4,
>                       [{file,"tls_connection.erl"},{line,362}]},
>       {tls_connection,send_handshake,2,
>                       [{file,"tls_connection.erl"},{line,108}]},
>       {ssl_connection,client_certify_and_key_exchange,2,
>                       [{file,"ssl_connection.erl"},{line,1038}]},
>
> {tls_connection,next_state,4,[{file,"tls_connection.erl"},{line,458}]},
>       {gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},
>       {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}
>
>
> On 02/07/2014 11:10 AM, Ingela Anderton Andin wrote:
>> Hi!
>>
>> If you can provide a failing test case that is a good place to start.  I
>> will not have time to look at it until Monday as I am looking after my
>> sick daughter today, and just quickly answering some mails.
>>
>> Regards Ingela Erlang/OTP team
>>
>> On 02/07/2014 11:01 AM, Loïc Hoguin wrote:
>>> On 02/06/2014 09:29 PM, Ingela Anderton Andin wrote:
>>>> Hi!
>>>>
>>>> On 02/06/2014 05:59 PM, Loïc Hoguin wrote:
>>>>> Just [{cert, Cert}, {key, Key}, {port, 0}, {versions, [sslv3]}] does
>>>>> it.
>>>>
>>>> You mean that you get it when you input certs as binaries? Could it be
>>>> related to https://github.com/erlang/otp/pull/163
>>>> We  want to include this pull request but it solves two problems and
>>>> only one persists and we are waiting for the pull
>>>> request to be updated.
>>>
>>> I don't have any idea what that pull request is about. I am not too well
>>> versed in SSL-fu.
>>>
>>> I narrowed it down a little.
>>>
>>> The previously mentioned issue only happens with a test certificate
>>> generated by erl_make_certs.erl.
>>>
>>> A different report happens with a certificate generated by OpenSSL
>>> (again, setting versions to [sslv3]).
>>>
>>> =ERROR REPORT==== 7-Feb-2014::10:55:57 ===
>>> SSL: certify: tls_connection.erl:2286:Fatal error: decrypt error
>>>
>>> =ERROR REPORT==== 7-Feb-2014::10:55:57 ===
>>> SSL: certify: tls_connection.erl:2055:Fatal error: decrypt error
>>> {error,{tls_alert,"decrypt error"}}
>>>
>>> The client in all cases is always:
>>>
>>>    ssl:connect("localhost", 44443, []).
>>>
>>> I can provide a test case for either or both of them if you want.
>>>
>>
>



More information about the erlang-bugs mailing list