Apache2-ModSSL
view release on metacpan or search on metacpan
t/1is_https.t view on Meta::CPAN
$hostport = Apache::TestRequest::hostport() || '';
t_debug("connecting to $hostport");
return GET_BODY "http".($conf=~'SSL'?'s':'')."://$hostport/TestSSL/".$addr;
}
Apache::TestRequest::user_agent
(reset=>1,
ssl_opts=>{
SSL_ca_file=>undef,
SSL_verify_mode=>0,
});
if( ssl_loaded ) {
#if( need_module 'ssl' ) {
plan tests => 2;
ok t_cmp( test( 'default', 'is_https' ), "HAVE_SSL=1 is_https: 0\n", "no ssl" );
ok t_cmp( test( 'SSL', 'is_https' ), "HAVE_SSL=1 is_https: 1\n", "ssl" );
} else {
plan tests => 1;
t/2lookup.t view on Meta::CPAN
$hostport = Apache::TestRequest::hostport() || '';
t_debug("connecting to $hostport");
return GET_BODY "http".($conf=~'SSL'?'s':'')."://$hostport/TestSSL/".$addr;
}
Apache::TestRequest::user_agent
(reset=>1,
ssl_opts=>{
SSL_ca_file=>undef,
SSL_verify_mode=>0,
});
if( ssl_loaded ) {
plan tests => 9;
ok t_cmp( test( 'default', 'lookup?HTTPS' ), "off\n", "HTTPS off" );
ok t_cmp( test( 'SSL', 'lookup?HTTPS' ), "on\n", "HTTPS on" );
ok t_cmp( test( 'SSL', 'lookup?SSL_PROTOCOL' ), qr/.+/, "SSL_PROTOCOL" );
ok t_cmp( test( 'SSL', 'lookup?SSL_SERVER_S_DN' ), '/C=DE/ST=Baden-Wuertemberg/L=Gaiberg/O=Foertsch Consulting/CN=localhost/emailAddress=torsten.foertsch@gmx.net'."\n", "SSL_SERVER_S_DN" );
ok t_cmp( test( 'SSL', 'lookup?SSL_SERVER_I_DN' ), '/C=DE/ST=Baden-Wuertemberg/L=Gaiberg/O=Foertsch Consulting/OU=CA/CN=Foertsch Consulting CA/emailAddress=torsten.foertsch@gmx.net'."\n", "SSL_SERVER_S_DN" );
( run in 1.117 second using v1.01-cache-2.11-cpan-73692580452 )