]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tls: add check for 'subjectaltname' 2098/head 2099/head
authorJuliana Fajardini <jufajardini@gmail.com>
Thu, 17 Oct 2024 00:36:32 +0000 (17:36 -0700)
committerJuliana Fajardini <jufajardini@gmail.com>
Thu, 17 Oct 2024 02:49:57 +0000 (19:49 -0700)
As this was missing from the logs, ensure that there won't be any
regressions.

Related to
Bug #7332

tests/tls/tls-subjectaltname/suricata.yaml [new file with mode: 0644]
tests/tls/tls-subjectaltname/test.yaml

diff --git a/tests/tls/tls-subjectaltname/suricata.yaml b/tests/tls/tls-subjectaltname/suricata.yaml
new file mode 100644 (file)
index 0000000..2596271
--- /dev/null
@@ -0,0 +1,17 @@
+%YAML 1.1
+---
+
+outputs:
+  - eve-log:
+      enabled: yes
+      filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
+      filename: eve.json
+      types:
+        - alert:
+            payload: no
+            payload-buffer-size: 4kb
+            payload-printable: no
+            packet: no
+            metadata: no
+        - tls:
+            custom: [subject, issuer, serial, fingerprint, sni, version, not_before, not_after, subjectaltname]
index 81fdebf238a39b5d7d782b8d882f6bed5be68d19..278c0e29ce84ec99d1624cc9ff73db73dd848c8c 100644 (file)
@@ -10,3 +10,8 @@ checks:
     match:
       alert.signature_id: 1
       event_type: alert
+- filter:
+    count: 28
+    match:
+      event_type: tls
+      has-key: tls.subjectaltname