Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable extract-certs-pem.zeek #820

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,14 @@ __enable_ssl_certificate_logging() {
echo '@load protocols/ssl/validate-certs' >>"$local_path/local.zeek"
fi

if ! grep -q '^[^#]*@load *policy/protocols/ssl/extract-certs-pem' "$local_path/local.zeek" ; then
echo '' >>"$local_path/local.zeek"
echo '#Log certificates' >>"$local_path/local.zeek"
echo '@load policy/protocols/ssl/extract-certs-pem' >>"$local_path/local.zeek"
echo 'redef SSL::extract_certs_pem = ALL_HOSTS;' >>"$local_path/local.zeek"
echo '' >>"$local_path/local.zeek"
fi
#Removed 202312 WLS because extract-certs-pem.zeek does not appear to be part of Zeek anymore. If needed in the future, see if log-certs-base64.zeek is a suitable replacement.
#if ! grep -q '^[^#]*@load *policy/protocols/ssl/extract-certs-pem' "$local_path/local.zeek" ; then
# echo '' >>"$local_path/local.zeek"
# echo '#Log certificates' >>"$local_path/local.zeek"
# echo '@load policy/protocols/ssl/extract-certs-pem' >>"$local_path/local.zeek"
# echo 'redef SSL::extract_certs_pem = ALL_HOSTS;' >>"$local_path/local.zeek"
# echo '' >>"$local_path/local.zeek"
#fi
}

__configure_zeek() {
Expand Down