Scripts broke after upgrading LWP “certificate verify failed”

前端 未结 4 974
一整个雨季
一整个雨季 2021-01-07 20:11

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

4条回答
  •  耶瑟儿~
    2021-01-07 20:29

    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.

提交回复
热议问题