:tocdepth: 3

base/files/x509/main.bro
========================
.. bro:namespace:: X509


:Namespace: X509
:Imports: :doc:`base/files/hash </scripts/base/files/hash/index>`, :doc:`base/frameworks/files </scripts/base/frameworks/files/index>`
:Source File: :download:`/scripts/base/files/x509/main.bro`

Summary
~~~~~~~
Types
#####
========================================== =
:bro:type:`X509::Info`: :bro:type:`record` 
========================================== =

Redefinitions
#############
============================================================== =
:bro:type:`Files::Info`: :bro:type:`record` :bro:attr:`&redef` 
:bro:type:`Log::ID`: :bro:type:`enum`                          
============================================================== =

Events
######
=========================================== ===================================
:bro:id:`X509::log_x509`: :bro:type:`event` Event for accessing logged records.
=========================================== ===================================


Detailed Interface
~~~~~~~~~~~~~~~~~~
Types
#####
.. bro:type:: X509::Info

   :Type: :bro:type:`record`

      ts: :bro:type:`time` :bro:attr:`&log`
         Current timestamp.

      id: :bro:type:`string` :bro:attr:`&log`
         File id of this certificate.

      certificate: :bro:type:`X509::Certificate` :bro:attr:`&log`
         Basic information about the certificate.

      handle: :bro:type:`opaque`
         The opaque wrapping the certificate. Mainly used
         for the verify operations.

      extensions: :bro:type:`vector` :bro:attr:`&default` = ``vector()`` :bro:attr:`&optional`
         All extensions that were encountered in the certificate.

      san: :bro:type:`X509::SubjectAlternativeName` :bro:attr:`&optional` :bro:attr:`&log`
         Subject alternative name extension of the certificate.

      basic_constraints: :bro:type:`X509::BasicConstraints` :bro:attr:`&optional` :bro:attr:`&log`
         Basic constraints extension of the certificate.

      logcert: :bro:type:`bool` :bro:attr:`&default` = ``T`` :bro:attr:`&optional`
         (present if :doc:`/scripts/policy/protocols/ssl/log-hostcerts-only.bro` is loaded)



Events
######
.. bro:id:: X509::log_x509

   :Type: :bro:type:`event` (rec: :bro:type:`X509::Info`)

   Event for accessing logged records.


