ClusterLabs/resource-agents — pull request #333 by mcnewton (2013-10-11 09:56:14+00:00)
Title: Disable HTTPS SSL certificate hostname checking, tidy debug output

I just upgraded to Debian Wheezy from Squeeze, and ldirectord checks using request/receive broke.

It turns out that HTTPS checks with request/receive will fail under newer versions of the LWP module due to certificate name checking now being enabled by default. This disables the check again so that service checking by IP only will still succeed. (Setting 'virtualhost' to the correct server name made no difference.)

See http://search.cpan.org/~gaas/libwww-perl-6.01/lib/LWP/UserAgent.pm, $ua->ssl_opts -> "The no checks behaviour was the default for libwww-perl-5.837 and older."

I also added an additional debug output line that shows the Status line so that it is easier to find out why the service has been taken down.

Tidied up the debug output when SSL values are not set (for example, if there has been a certificate error, or simply that the host is unreachable).