vici: flush-certs command flushes certificate cache
When fresh CRLs are released with a high update frequency (e.g. every 24 hours) or OCSP is used then the certificate cache gets quickly filled with stale CRLs or OCSP responses. The new VICI flush-certs command allows to flush e.g. cached CRLs or OCSP responses only. Without the type argument all kind of certificates (e.g. also received end entity and intermediate CA certificates) are purged.
This commit is contained in:
@@ -560,6 +560,21 @@ print "----- unload-authority -----\n";
|
||||
($res, $errmsg) = $session->unload_authority(Vici::Message->new(\%vars));
|
||||
print $res ? "ok\n" : "failed: $errmsg\n";
|
||||
|
||||
=item flush_certs()
|
||||
|
||||
flushes the volatile certificate cache. Optionally only a given certificate
|
||||
type is flushed.
|
||||
|
||||
my %vars = ( type => 'x509_crl' );
|
||||
my ($res, $errmsg) = $session->flush_certs(Vici::Message->new(\%vars));
|
||||
|
||||
=cut
|
||||
|
||||
print "----- flush-certs -----\n";
|
||||
%vars = ( type => 'x509_crl' );
|
||||
($res, $errmsg) = $session->flush_certs(Vici::Message->new(\%vars));
|
||||
print $res ? "ok\n" : "failed: $errmsg\n";
|
||||
|
||||
=item clear_creds()
|
||||
|
||||
clears all loaded certificate, private key and shared key credentials. This
|
||||
|
||||
Reference in New Issue
Block a user