Changeset View
Changeset View
Standalone View
Standalone View
files/lwp-protocol-https-cert-file.patch
- This file was added.
| 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; | |||||
| }; | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.