[erlang-questions] ssl: a possible bug
Imants Cekusins
imantc@REDACTED
Mon Nov 10 11:52:03 CET 2014
This is not a bug. Please ignore my previous message
If the private key file is password protected, need to specify the password:
As per http://www.erlang.org/doc/apps/ssl/using_ssl.html
2 server> {ok, ListenSocket} =
ssl:listen(9999, [{certfile, "cert.pem"}, {keyfile,
"key.pem"},{reuseaddr, true}]).
{ok,{sslsocket, [...]}}
With password specified:
{ok, ListenSocket} =
ssl:listen(9999,[{keyfile,Pem_file_name},{password,Password_value},{reuseaddr,true}]).
On 10 November 2014 10:29, wrote:
> An example at
> http://www.erlang.org/doc/apps/ssl/using_ssl.html
>
> 2.2 Setting up connections
> Minmal example
>
> results in error:
> (server@REDACTED)4> ssl:ssl_accept(Socket).
> {error,
> {keyfile,{badmatch,{error,{asn1,{invalid_length,6}}}}}}
>
>
> OTP 17.3
More information about the erlang-questions
mailing list