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

openssl-parsed string-value), one event for basicconstraints (is a certificate a CA or not) and one event for subject-alternative-names (only DNS parts).
29 lines
426 B
Text
29 lines
426 B
Text
|
|
@load base/frameworks/files
|
|
|
|
module X509;
|
|
|
|
export {
|
|
redef enum Log::ID += { LOG };
|
|
}
|
|
|
|
event x509_cert(f: fa_file, cert: X509::Certificate)
|
|
{
|
|
print cert;
|
|
}
|
|
|
|
event x509_extension(f: fa_file, ext: X509::Extension)
|
|
{
|
|
print ext;
|
|
}
|
|
|
|
event x509_ext_basic_constraints(f: fa_file, ext: X509::BasicConstraints)
|
|
{
|
|
print ext;
|
|
}
|
|
|
|
event x509_ext_subject_alternative_name(f: fa_file, ext: X509::SubjectAlternativeName)
|
|
{
|
|
print ext;
|
|
}
|
|
|