Skip to content

Commit 7dd35db

Browse files
Add Unix/Linux keystore support
1 parent a46cd30 commit 7dd35db

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/GLPI/Agent/HTTP/Client.pm

+7
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,13 @@ sub _KeyChain_or_KeyStore_Export {
692692
}
693693
}
694694

695+
# Like Mozilla::CA, but using certs from /etc/ssl/certs
696+
if ($OSNAME !~ /^darwin|MSWin32$/) {
697+
my $cacert = "/etc/ssl/certs/ca-certificates.crt";
698+
push @certs, IO::Socket::SSL::Utils::PEM_file2certs($cacert)
699+
if -e $cacert;
700+
}
701+
695702
# Always include default CA file from Mozilla::CA
696703
if (Mozilla::CA->require()) {
697704
my $cacert = Mozilla::CA::SSL_ca_file();

0 commit comments

Comments
 (0)