POE::Component::SSLifyPOE::Component::SSLify is a Perl module that makes using SSL in the world of POE easy! | |
Download |
POE::Component::SSLify Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Rocco Caputo
- Publisher web site:
- http://search.cpan.org/~apocal/
POE::Component::SSLify Tags
POE::Component::SSLify Description
POE::Component::SSLify is a Perl module that makes using SSL in the world of POE easy! POE::Component::SSLify is a Perl module that makes using SSL in the world of POE easy!SYNOPSISClient-side usage # Import the module use POE::Component::SSLify qw( Client_SSLify ); # Create a normal SocketFactory wheel or something my $factory = POE::Wheel::SocketFactory->new( ... ); # Converts the socket into a SSL socket POE can communicate with eval { $socket = Client_SSLify( $socket ) }; if ( $@ ) { # Unable to SSLify it... } # Now, hand it off to ReadWrite my $rw = POE::Wheel::ReadWrite->new( Handle => $socket, ... ); # Use it as you wish...Server-side usage # !!! Make sure you have a public key + certificate generated via Net::SSLeay's makecert.pl # excellent howto: http://www.akadia.com/services/ssh_test_certificate.html # Import the module use POE::Component::SSLify qw( Server_SSLify SSLify_Options ); # Set the key + certificate file eval { SSLify_Options( 'server.key', 'server.crt' ) }; if ( $@ ) { # Unable to load key or certificate file... } # Create a normal SocketFactory wheel or something my $factory = POE::Wheel::SocketFactory->new( ... ); # Converts the socket into a SSL socket POE can communicate with eval { $socket = Server_SSLify( $socket ) }; if ( $@ ) { # Unable to SSLify it... } # Now, hand it off to ReadWrite my $rw = POE::Wheel::ReadWrite->new( Handle => $socket, ... ); # Use it as you wish...Requirements:· Perl Requirements: · Perl
POE::Component::SSLify Related Software