From d760289918d5d5fcc89f4e0a06f70fd86eae8e73 Mon Sep 17 00:00:00 2001 From: colin Date: Wed, 19 Jul 2017 20:06:46 -0700 Subject: [PATCH] Allow WebGUI::Cache and all consumers to fetch SSL URLs, but not verify the certificates. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Cache.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index cea21ccfe..90b5b78c5 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.10.31 - fixed: Warnings about API changes in POE::Component::IKC::ClientLite + - fixed: Allow WebGUI::Cache and all consumers to fetch SSL URLs, but not verify the certificates. 7.10.30 - fixed: Do not generate the Not Found page when JS or CSS is requested. In admin mode, this is bypassed so that admins can see which pages are really missing and can easily add them. diff --git a/lib/WebGUI/Cache.pm b/lib/WebGUI/Cache.pm index 1cc702a57..57f5e1980 100644 --- a/lib/WebGUI/Cache.pm +++ b/lib/WebGUI/Cache.pm @@ -230,7 +230,7 @@ sub setByHTTP { my $self = shift; my $url = shift; my $ttl = shift; - my $userAgent = LWP::UserAgent->new(); + my $userAgent = LWP::UserAgent->new(ssl_opts => { verify_hostname => 0, }, ); $userAgent->env_proxy; $userAgent->agent("WebGUI/".$WebGUI::VERSION); $userAgent->timeout(30);