Subject: | Add option to disable error checking |
Just a bit of sugar.. would be nice to have a way to disable the
boilerplate die_if_ssl_error(...) with something like...
{
local $POE::Component::SSLify::IGNORE_SSL_ERRORS=1;
SSLify_CreateContext(...);
#Some more stuff
}
#I found it useful in at least one setting where openssl would seemingly
cache the session (or something to that effect.. [apparently there's an
option to disable cache, but either that had no effect, or i didn't know
what i was doing?
local $Net::SSLeay::trace = 2;
local $Net::SSLeay::ssl_version = 10;
my $ctx = Net::SSLeay::CTX_new();
#Net::SSLeay::CTX_set_options()
Net::SSLeay::CTX_use_RSAPrivateKey_file($ctx, $keyfile,
&Net::SSLeay::FILETYPE_PEM);
Net::SSLeay::CTX_use_certificate_file($ctx, $crtfile,
&Net::SSLeay::FILETYPE_PEM );
log_debug("Created context..");
$sslified_sock =
Server_SSLify($client->wheel->get_input_handle, $ctx);
log_debug("SSLified socket!");
If that died on an SSL error, something like firefox would never be able
to fetch the CA certificate because it would have rejected it from a
previous connection