eldritch has asked for the wisdom of the Perl Monks concerning the following question:
The problem is, now I want to create these courses on servers running SSL instead of just HTTP. I would prefer to use IO::Socket::SSL, and just create a secure socket instead of an insecure one, keeping my code mostly the same. But I'm having a very difficult time getting this to work, mostly because I can't find documentation. What I would really like is some example code of what it looks like to open a secure socket, but also some back story to the process. The error I keep getting is unable to create socket: No such file or directory The code I'm using is
What file is it missing? Where can I find documentation on the methods for IO::Socket::SSL (they aren't in the README)? Should I give up and use LWP instead? Either way, I seem to be missing something big regarding "having the certificate of the site I'm trying to connect to" (I keep seeing references to that, but I don't know how to do it.)my $socket = IO::Socket::SSL->new( PeerAddr => "$remote_host:$remote_port", PeerPort => $remote_port, Proto => "tcp", SSL_verify_mode=>0x01 ) or die "unable to create socket: $!\n";;
Any help is humbly and gratefully requested. Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: POSTing data via SSL
by eldritch (Initiate) on Dec 06, 2001 at 03:47 UTC | |
by no_slogan (Deacon) on Dec 06, 2001 at 05:08 UTC | |
|
Re: POSTing data via SSL
by strat (Canon) on Dec 06, 2001 at 15:34 UTC |