Skip to content

Commit 18bce41

Browse files
committed
fix: Fix wrong key with keystore option support
1 parent ea4edc1 commit 18bce41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/GLPI/Agent/HTTP/Client.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ sub _KeyChain_or_KeyStore_Export {
614614
if ($self->{ssl_keystore}) {
615615
foreach my $case (split(/,+/, $self->{ssl_keystore})) {
616616
$case = trimWhitespace($case);
617-
if ($case =~ /^(Store|Enterprise|GroupPolicy|User)?-?(CA|Root)$/) {
617+
if ($case =~ /^(Service|Enterprise|GroupPolicy|User)?-?(My|CA|Root)$/) {
618618
my $store = $2 =~ /CA/i ? "CA" : "Root";
619619
my $option = $1 ? " -$1" : "";
620620
push @certCommands, "certutil -Silent -Split$option -Store $store";

0 commit comments

Comments
 (0)