22 lines
656 B
Diff
22 lines
656 B
Diff
From 9c98370287f4e709924aee7c58ef21c85289a7f0 Mon Sep 17 00:00:00 2001
|
|
From: Stig Palmquist <git@stig.io>
|
|
Date: Tue, 28 Feb 2023 11:54:06 +0100
|
|
Subject: [PATCH] Add verify_SSL=>1 to HTTP::Tiny to verify https server
|
|
identity
|
|
|
|
---
|
|
lib/CPAN/HTTP/Client.pm | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/lib/CPAN/HTTP/Client.pm b/lib/CPAN/HTTP/Client.pm
|
|
index 4fc792c26..a616fee20 100644
|
|
--- a/lib/CPAN/HTTP/Client.pm
|
|
+++ b/lib/CPAN/HTTP/Client.pm
|
|
@@ -32,6 +32,7 @@ sub mirror {
|
|
|
|
my $want_proxy = $self->_want_proxy($uri);
|
|
my $http = HTTP::Tiny->new(
|
|
+ verify_SSL => 1,
|
|
$want_proxy ? (proxy => $self->{proxy}) : ()
|
|
);
|
|
|