Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to debug failure in HTTP::Daemon::SSL->new()

by zentara (Archbishop)
on Apr 26, 2014 at 14:48 UTC ( [id://1083938]=note: print w/replies, xml ) Need Help??


in reply to How to debug failure in HTTP::Daemon::SSL->new()

I have seen this old tip.
#!/usr/bin/perl #The trick here is simply to dynamically change the #inheritance of HTTP::Daemon to make it an heir #of IO::Socket::SSL instead of IO::Socket::INET use HTTP::Daemon; use IO::Socket::SSL; @HTTP::Daemon::ISA = qw/ IO::Socket::SSL /; @HTTP::Daemon::ClientConn::ISA = qw/ IO::Socket::SSL /; my $server = new HTTP::Daemon SSL_cert_file => 'cert.pem', SSL_cert_file => 'key.pm', LocalPort => 443, ReuseAddr => 1, ; while ( my $client = $server->accept() ) { # do stuff ... $client->close(SSL_no_shutdown => 1); } $server->close(SSL_no_shutdown => 1);

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1083938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-19 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found