mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

By default, each certificate is now output only once per hour. This also should work in cluster mode, where we use the net broker-table-syncing feature to distribute the information about already seen certificates across the entire cluster. Log caching is also pretty configureable and can be changed using a range of confiuration options and hooks. Note that this is currently completely separate from X509 events caching, which prevents duplicate parsing of X509 certificates.
16 lines
490 B
Text
16 lines
490 B
Text
# Test that certificate event caching works as expected.
|
|
|
|
# @TEST-EXEC: zeek -b -r $TRACES/tls/google-duplicate.trace %INPUT
|
|
# @TEST-EXEC: btest-diff x509.log
|
|
# @TEST-EXEC: btest-diff .stdout
|
|
|
|
@load base/protocols/ssl
|
|
|
|
redef X509::caching_required_encounters = 1;
|
|
|
|
redef X509::relog_known_certificates_after = 0secs;
|
|
|
|
hook X509::x509_certificate_cache_replay(f: fa_file, e: any, sha256: string) &priority=1
|
|
{
|
|
print "Encountered cached certificate not further handled by core", sha256;
|
|
}
|