mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Implement verification of OCSP replies.
The OpenSSL code to do that is a nightmare.
This commit is contained in:
parent
ccccda6da8
commit
55d0c6f7fa
4 changed files with 247 additions and 61 deletions
|
@ -3,5 +3,10 @@
|
|||
|
||||
event ssl_stapled_ocsp(c: connection, is_orig: bool, response: string)
|
||||
{
|
||||
local chain: vector of opaque of x509 = vector();
|
||||
for ( i in c$ssl$cert_chain )
|
||||
chain[i] = c$ssl$cert_chain[i]$x509$handle;
|
||||
|
||||
print is_orig, |response|;
|
||||
print x509_ocsp_verify(chain, response, SSL::root_certs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue