]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tls: adds a test for certificate without issuer 1304/head
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 20 Jun 2023 08:29:00 +0000 (10:29 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 10 Jul 2023 15:48:56 +0000 (17:48 +0200)
Ticket: #5439

tests/tls/tls-cert-noissuer/README.md [new file with mode: 0644]
tests/tls/tls-cert-noissuer/test.yaml [new file with mode: 0644]
tests/tls/tls-cert-noissuer/tls.pcap [new file with mode: 0644]
tests/tls/tls-cert-noissuer/tls.rules [new file with mode: 0644]

diff --git a/tests/tls/tls-cert-noissuer/README.md b/tests/tls/tls-cert-noissuer/README.md
new file mode 100644 (file)
index 0000000..da5a8c0
--- /dev/null
@@ -0,0 +1,9 @@
+## PCAP
+
+PCAP comes from https://redmine.openinfosecfoundation.org/issues/5439
+
+## Related Ticket
+
+https://redmine.openinfosecfoundation.org/issues/5439
+
+Tests that certificates lacking an issuer are still parsed by Suricata
diff --git a/tests/tls/tls-cert-noissuer/test.yaml b/tests/tls/tls-cert-noissuer/test.yaml
new file mode 100644 (file)
index 0000000..c898d00
--- /dev/null
@@ -0,0 +1,9 @@
+args:
+- -k none
+
+checks:
+  - filter:
+      count: 1
+      match:
+        event_type: alert
+        alert.signature_id: 1
diff --git a/tests/tls/tls-cert-noissuer/tls.pcap b/tests/tls/tls-cert-noissuer/tls.pcap
new file mode 100644 (file)
index 0000000..7e5f593
Binary files /dev/null and b/tests/tls/tls-cert-noissuer/tls.pcap differ
diff --git a/tests/tls/tls-cert-noissuer/tls.rules b/tests/tls/tls-cert-noissuer/tls.rules
new file mode 100644 (file)
index 0000000..7d613d2
--- /dev/null
@@ -0,0 +1 @@
+alert tls any any -> any any (msg:"test"; flow:established,to_client; tls.cert_subject; content:"localhost"; sid:1;)