mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-26 07:03:40 +08:00
update
This commit is contained in:
@@ -784,6 +784,15 @@ my $ossl = "ossl/apps/openssl";
|
||||
|
||||
my $ossl_cmd = "$ossl_path cms -verify -verify_retcode ";
|
||||
$ossl_cmd .= "-CAfile pkitsta.pem -crl_check_all -x509_strict ";
|
||||
|
||||
# Check for expiry of trust anchor
|
||||
system "$ossl_path x509 -inform DER -in $pkitsta -checkend 0";
|
||||
if ($? == 256)
|
||||
{
|
||||
print STDERR "WARNING: using older expired data\n";
|
||||
$ossl_cmd .= "-attime 1291940972 ";
|
||||
}
|
||||
|
||||
$ossl_cmd .= "-policy_check -extended_crl -use_deltas -out /dev/null 2>&1 ";
|
||||
|
||||
system "$ossl_path x509 -inform DER -in $pkitsta -out pkitsta.pem";
|
||||
|
||||
Reference in New Issue
Block a user