I have a lot of scripts, most of them based around WWW::Mechanize that scrape data off of misc hardware that is accessible via HTTPs. After upgrading most of my
WWW::Mechanize
I prepended my code with:
$ENV{'PERL_LWP_SSL_VERIFY_HOSTNAME'} = 0;
This caused the script to circumvent the check in a clean and simple way.