2018-06-29 20:29:22 +00:00
|
|
|
diff --git a/lib/LWP/Protocol/https.pm b/lib/LWP/Protocol/https.pm
|
2023-10-14 14:47:26 +00:00
|
|
|
index 645e828..7098f64 100644
|
2018-06-29 20:29:22 +00:00
|
|
|
--- a/lib/LWP/Protocol/https.pm
|
|
|
|
+++ b/lib/LWP/Protocol/https.pm
|
2023-10-14 14:47:26 +00:00
|
|
|
@@ -29,6 +29,9 @@ sub _extra_sock_opts
|
|
|
|
}
|
2016-03-02 14:00:32 +00:00
|
|
|
}
|
|
|
|
if ($ssl_opts{SSL_verify_mode}) {
|
2023-10-14 14:47:26 +00:00
|
|
|
+ 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
|