Skip to content

Commit

Permalink
Update Client.pm
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomozart authored Jan 17, 2025
1 parent a57c19d commit 7de97c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/GLPI/Agent/HTTP/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ sub _KeyChain_or_KeyStore_Export {
}

# Include default CA file from Mozilla::CA if @certs is empty
if ((!@certs || $self->{ssl_keystore} !~ /^system-ssl-ca$/i) && Mozilla::CA->require()) {
if ((!@certs || $OSNAME eq 'darwin' && $self->{ssl_keystore} !~ /^system-ssl-ca$/i) && Mozilla::CA->require()) {
my $cacert = Mozilla::CA::SSL_ca_file();
push @certs, IO::Socket::SSL::Utils::PEM_file2certs($cacert)
if -e $cacert;
Expand Down

0 comments on commit 7de97c1

Please sign in to comment.