[erlang-questions] Upgrading gen_tcp socket to ssl

Koushik Narayanan koushik.list@REDACTED
Tue Nov 4 14:39:49 CET 2008


Hi All,

In ssl-3.9, according to the documentation the connect/2 function allows
upgrading a gen_tcp socket to a ssl socket.

But when I try ssl:connect(Gen_tcp_socket,[{verify,0}]), I get
{eoptions,{cacertfile,[]}}.

The Gen_tcp_socket is a socket created using gen_tcp:connect/3.

Since {verify,0}, why is a cacertfile required.

ssl:connect/3 (for creating a ssl connection not upgrading existing one)
works fine without cacertfile.

What am I missing here?


Regards,

Koushik Narayanan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081104/40a1b72d/attachment.htm>


More information about the erlang-questions mailing list