Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    $ua->ssl_opts( SSL_verfifycn_name => 'foo.bar');
    my $res = $ua->get('https://127.0.0.1:4433');
    print $res->as_string;
    
  2. or download this
    openssl s_server -cert self-signed.pem -key self-signed.pem -WWW