Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  inet_ssl not working

diginux
Posted: Sat Oct 21, 2006 1:59 am Reply with quote
User Joined: 08 Sep 2006 Posts: 13
I have been trying to get this to work for a while now, I follow the instructions exactly, but I still can't get it to work, on either my gentoo computer or my debian computer using the R11B release, does anyone have any ideas?

[diginux@bohr ssltest]$ erl -boot start_ssl -proto_dist inet_ssl -sname ssl_test
{error_logger,{{2006,10,20},{21,58,24}},"Protocol: ~p: register/listen error: ~p~n",["inet_ssl",{'EXIT',{normal,{gen_server,call,[ssl_server_prim,{listen,<0.21.0>,{0,0,0,0},0,[],128},infinity]}}}]}

Thanks in advance for any help!
View user's profile Send private message
francesco
Posted: Sun Oct 22, 2006 8:29 pm Reply with quote
User Joined: 07 Jul 2006 Posts: 249 Location: London
Have you installed ssl locally on your machine?

Francesco
View user's profile Send private message Visit poster's website
diginux
Posted: Tue Oct 24, 2006 6:43 pm Reply with quote
User Joined: 08 Sep 2006 Posts: 13
francesco wrote:
Have you installed ssl locally on your machine?

Francesco


Yes I have. It is on Linux.
View user's profile Send private message
dub
Posted: Tue Oct 24, 2006 9:31 pm Reply with quote
Joined: 24 Oct 2006 Posts: 1
Code:
erl -boot start_ssl -proto_dist inet_ssl -sname ssl_test


I ran through the same problem when experimenting with SSL distribution. The example given in the documentation doesn't work (neither on Linux or Win32, with openSSL correctly installed on both). You have to specify the certificates you want to use on the command-line with "-ssl_dist_opt server_certfile name_of_file" and/or "-ssl_dist_opt client_certfile name_of_file".

The files have to contain both the public certificate and the private key. It looks like :

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
View user's profile Send private message
diginux
Posted: Fri Oct 27, 2006 2:28 pm Reply with quote
User Joined: 08 Sep 2006 Posts: 13
dub wrote:
Code:
erl -boot start_ssl -proto_dist inet_ssl -sname ssl_test


I ran through the same problem when experimenting with SSL distribution. The example given in the documentation doesn't work (neither on Linux or Win32, with openSSL correctly installed on both). You have to specify the certificates you want to use on the command-line with "-ssl_dist_opt server_certfile name_of_file" and/or "-ssl_dist_opt client_certfile name_of_file".

The files have to contain both the public certificate and the private key. It looks like :

-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----


Thanks alot! I will try this out when I get home, I am assuming this is the missing link I was looking for though.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum