[erlang-bugs] systools:make_script returns "Undefined applications: [asn1]" when generating boot script that enables ssl

Luis A. Serrano lserranov@REDACTED
Sun Mar 23 06:32:59 CET 2014


Hi, 

It looks like I hit a new problem. When following bellow guide and just for the sake of making sure I get what I'm supposed to get I see trouble:

http://www.erlang.org/doc/apps/ssl/using_ssl.html


section 2.2. step 2:


# erl -sname server
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V5.10.4  (abort with ^G)
(server@REDACTED)1> ssl:start().
ok
(server@REDACTED)2> {ok, ListenSocket} =ssl:listen(9999, [{certfile, "/TOOLS/cert.pem"}, {keyfile, "/TOOLS/key.pem"} ,{reuseaddr, true}]).
{ok,{sslsocket,nil,
               {#Port<0.1152>,
                {config,{ssl_options,undefined,
                                     [{3,3},{3,2},{3,1},{3,0}],
                                     verify_none,
                                     {#Fun<ssl.1.97315703>,[]},
                                     false,false,undefined,1,<<"/TOOLS/cert.pem">>,undefined,
                                     <<"/TOOLS/key.pem">>,undefined,[],undefined,<<>>,undefined,
                                     undefined,undefined,undefined,...},
                        [{reuseaddr,true}],
                        {socket_options,list,0,0,0,true},
                        [{reuseaddr,true},
                         {packet_size,0},
                         {packet,0},
                         {header,0},
                         {active,false},
                         {mode,binary}],
                        {gen_tcp,tcp,tcp_closed,tcp_error},
                        tls_connection}}}}
(server@REDACTED)3> 


That very long message is not expected (I guess), the doc says I would be getting:

{ok,{sslsocket, [...]}}
So there is still something which is not right here.  Please notice I'm using the ssl pkgs shiped with centos itself. Saying this just in case. 
Please advise.
Many thanks
Luis



________________________________
 From: Luis A. Serrano <lserranov@REDACTED>
To: Dave Cottlehuber <dch@REDACTED> 
Cc: "erlang-bugs@REDACTED" <erlang-bugs@REDACTED> 
Sent: Saturday, March 22, 2014 10:16 AM
Subject: Re: [erlang-bugs] systools:make_script returns "Undefined applications: [asn1]" when generating boot script that enables ssl
 


Hi Dave, 

Many thanks. That worked. I got the "expected" ok now.

Regarding the patch for relevant doc, I'm pretty new here and instead of fixing I would be causing more damage. For now I will let somebody else to do that.

Thanks again!
Regards
Luis 


________________________________
 From: Dave Cottlehuber <dch@REDACTED>
To: Luis A. Serrano <lserranov@REDACTED> 
Cc: "erlang-bugs@REDACTED" <erlang-bugs@REDACTED> 
Sent: Saturday, March 22, 2014 12:58 AM
Subject: Re: [erlang-bugs] systools:make_script returns "Undefined applications: [asn1]" when generating boot script that enables ssl
 

Luis,

Add {asn1, "2.0.4"},

to your .rel file. If that works, consider sending a patch for the
relevant doc http://github.com/erlang/otp/tree/master/lib/ssl/doc/src/ssl_distribution.xml
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140322/a1e0135b/attachment.htm>


More information about the erlang-bugs mailing list