|
|
@ -67,7 +67,7 @@ if ($? != 0 || $expire_check !~ m/^Certificate will not expire/){ |
|
|
|
if ($issuer){ |
|
|
|
if ($issuer){ |
|
|
|
my $issuer_check = qx(openssl x509 -in $cert -noout -issuer); |
|
|
|
my $issuer_check = qx(openssl x509 -in $cert -noout -issuer); |
|
|
|
chomp($issuer_check); |
|
|
|
chomp($issuer_check); |
|
|
|
$issuer_check =~ s/^issuer=\s//; |
|
|
|
$issuer_check =~ s/^issuer=\s*//; |
|
|
|
unless ($issuer_check eq $issuer){ |
|
|
|
unless ($issuer_check eq $issuer){ |
|
|
|
print "Certificate is signed by $issuer_check instead of $issuer\n"; |
|
|
|
print "Certificate is signed by $issuer_check instead of $issuer\n"; |
|
|
|
exit 1; |
|
|
|
exit 1; |
|
|
|