[erlang-questions] SSL Example does not work
Roger Wenham
roger.wenham@REDACTED
Sat Feb 20 17:01:42 CET 2016
Thanks for all the replies!, this list is brilliant!
I now completely understand.
ssl:start() calls:
application:start(crypto),
application:start(asn1),
application:start(public_key),
application:start(ssl).
The supplied ssl example program calls:
start() ->
%% Start ssl application
application:start(crypto),
application:start(public_key),
application:start(ssl),
....
So as Loïc Hoguin correctly pointed out, asn1 is not being started,
causing the error...
So the test program should be modified as either:
start() ->
%% Start ssl application
application:start(crypto),
application:start(asn1),
application:start(public_key),
application:start(ssl),
....
or better:
start() ->
%% Start ssl application
ssl:start(),
....
I have tested the first fix, and it works....
Do I need to raise a bug on this, as it is *very* confusing to have an
official example program not work?
Thanks
Roger
On 20/02/16 14:32, Loïc Hoguin wrote:
> On 02/20/2016 12:13 PM, Roger Wenham wrote:
>> Hi Magnus,
>>
>> Thought of that, but the test program starts:
>>
>> start() ->
>> %% Start ssl application
>
> It's missing
> application:start(asn1).
>
>> application:start(crypto),
>> application:start(public_key),
>> application:start(ssl),
>> ...
>
More information about the erlang-questions
mailing list