[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,
    short_name=extendedKeyUsage,
    oid=2.5.29.37,
    critical=F,
    value=TLS Web Server Authentication, TLS Web Client Authentication]
  [name=X509v3 Certificate Policies,
   short_name=certificatePolicies,
   oid=2.5.29.32,
   critical=F,
   value=Policy: 1.3.6.1.4.1.6449.1.2.1.3.4^J  CPS: https://secure.comodo.com/CPS^J]





--
This message was sent by Atlassian JIRA
(v6.2-OD-07-028#6211)


More information about the bro-dev mailing list