diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-02 15:00:32 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-03-02 15:00:32 +0100 |
commit | bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7 (patch) | |
tree | f920c74a4c4417269682c7ae4917aa69c8f6f5ee /pkgs/development/perl-modules | |
parent | 4e906f9fb25b8bcf2355f2545a2476430ec4ecb5 (diff) | |
download | nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar.gz nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar.bz2 nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar.lz nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar.xz nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.tar.zst nixlib-bd7f379a3f4d661a0ae611e7ca4d7d85297f13d7.zip |
LWP::Protocol::https: Fix SSL cert handling
We lost this in 9f358f809d1db46f3206d4a09a5366f13c93e777. Updated to use /etc/ssl/certs/ca-certificates.crt if it exists and SSL_CERT_FILE is not set.
Diffstat (limited to 'pkgs/development/perl-modules')
-rw-r--r-- | pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch b/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch new file mode 100644 index 000000000000..119c8b61da36 --- /dev/null +++ b/pkgs/development/perl-modules/lwp-protocol-https-cert-file.patch @@ -0,0 +1,15 @@ +diff -ru -x '*~' LWP-Protocol-https-6.04-orig/lib/LWP/Protocol/https.pm LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm +--- LWP-Protocol-https-6.04-orig/lib/LWP/Protocol/https.pm 2013-04-29 23:16:18.000000000 +0200 ++++ LWP-Protocol-https-6.04/lib/LWP/Protocol/https.pm 2016-03-02 14:59:01.639844511 +0100 +@@ -24,6 +24,11 @@ + } + if ($ssl_opts{SSL_verify_mode}) { + unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { ++ $ssl_opts{SSL_ca_file} = $ENV{'SSL_CERT_FILE'}; ++ $ssl_opts{SSL_ca_file} = "/etc/ssl/certs/ca-certificates.crt" ++ if !defined $ssl_opts{SSL_ca_file} && -e "/etc/ssl/certs/ca-certificates.crt"; ++ } ++ unless (exists $ssl_opts{SSL_ca_file} || exists $ssl_opts{SSL_ca_path}) { + eval { + require Mozilla::CA; + }; |