diff options
Diffstat (limited to 'nixpkgs/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch')
-rw-r--r-- | nixpkgs/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch b/nixpkgs/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch new file mode 100644 index 000000000000..3b6156d3a7c7 --- /dev/null +++ b/nixpkgs/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch @@ -0,0 +1,14 @@ +diff --git a/lib/LWP/Protocol/https.pm b/lib/LWP/Protocol/https.pm +index 645e828..7098f64 100644 +--- a/lib/LWP/Protocol/https.pm ++++ b/lib/LWP/Protocol/https.pm +@@ -29,6 +29,9 @@ sub _extra_sock_opts + } + } + if ($ssl_opts{SSL_verify_mode}) { ++ if ($ENV{NIX_SSL_CERT_FILE}) { ++ $ssl_opts{SSL_ca_file} //= $ENV{NIX_SSL_CERT_FILE}; ++ } + unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { + if ($Net::HTTPS::SSL_SOCKET_CLASS eq 'IO::Socket::SSL' + && defined &IO::Socket::SSL::default_ca |