in reply to Re^3: LWP::Simple::get($url) does not work for particular urls (SSL certificate verification)
in thread LWP::Simple::get($url) does not work for particular urls

> ... this is because your desktop browser uses the Certificate Authority root certificates that are distributed with your operating system, whereas LWP::UserAgent does not know about them.

The problem is not that the root CA is not trusted by LWP but that the intermediate CA is missing (broken server setup) and thus the trust chain cannot be created. Desktop browsers often successfully work around such broken setups by using cached certificates or downloading missing CA from the web but other clients (Python, Perl, Java, mobile apps...) don't do this workarounds and thus fail with broken sites.

  • Comment on Re^4: LWP::Simple::get($url) does not work for particular urls (SSL certificate verification)

Replies are listed 'Best First'.
Re^5: LWP::Simple::get($url) does not work for particular urls (SSL certificate verification)
by 1nickt (Canon) on Dec 31, 2017 at 22:16 UTC

    Thanks for the more accurate information, I defer to an expert, which I am not!


    The way forward always starts with a minimal test.