Hi.
A script that is a slightly modified version of what’s shipped with Bro, gives me interesting results
The script source
http://michal.pastebin.mozilla.org/7542181
Take a look at lines
-
local key_length = cert$key_length;
-
if ( key_length < notify_minimal_key_length )
-
NOTICE([$note=Weak_Key,
I can see (in notice.log) warnings about host using 1024 bit certificate. Well, the minimal acceptable length is set to 1024 so I should not get any warnings.
notice.log
1416937779.196106 CoZK6Z1Y61rsevYSCd 63.245.221.32 34715 10.22.72.139 13000 - - - tcp SSL::Weak_Key Host uses weak certificate with 1024 bit key - 63.245.221.32 10.22.72.139 13000 - nsm7-eth4-6 Notice::ACTION_LOG 86400.000000 F
The ssl.log and x509.log show that the connection was over SSL, and the certificate is 1024 bit.