[Bro-Dev] [JIRA] (BIT-1120) Fix & extend x509_extension event

Bernhard Amann (JIRA) jira at bro-tracker.atlassian.net
Mon Jan 27 10:34:58 PST 2014

Bernhard Amann created BIT-1120:

             Summary: Fix & extend x509_extension event
                 Key: BIT-1120
                 URL: https://bro-tracker.atlassian.net/browse/BIT-1120
             Project: Bro Issue Tracker
          Issue Type: Problem
          Components: Bro
    Affects Versions: 2.2, git/master
            Reporter: Bernhard Amann
             Fix For: 2.3

Please merge topic/bernhard/fix-x509-extension.

This branch fixes and extends the x509_extension event, which was never called in the previous implementation. The event now parses the extension into a bro data structure. If supports printing it, it is converted into the openssl ascii output, otherwise a raw hex-dump is output.

New event syntax:
event x509_extension(c: connection, is_orig: bool, cert:X509, extension: X509_extension_info)

Example output for extension:
  [name=X509v3 Extended Key Usage,
    value=TLS Web Server Authentication, TLS Web Client Authentication]
  [name=X509v3 Certificate Policies,
   value=Policy:^J  CPS: https://secure.comodo.com/CPS^J]

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list