in reply to use LWP::Protocol::https
When I run your code on my server it works just fine.
Make sure you have the latest versions of all relevant LWP and HTTPS modules
and OpenSSL.
In Section
Seekers of Perl Wisdom
in reply to use LWP::Protocol::https