Skip to content

Commit

Permalink
Disable extract-certs-pem.zeek (#820)
Browse files Browse the repository at this point in the history
  • Loading branch information
william-stearns authored and Logan Lembke committed Dec 13, 2023
1 parent dd1acf9 commit a7f1e18
Showing 1 changed file with 8 additions and 7 deletions.
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

0 comments on commit a7f1e18

Please sign in to comment.