From: Philippe Antoine Date: Tue, 20 Jun 2023 08:29:00 +0000 (+0200) Subject: tls: adds a test for certificate without issuer X-Git-Tag: suricata-7.0.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1304%2Fhead;p=thirdparty%2Fsuricata-verify.git tls: adds a test for certificate without issuer Ticket: #5439 --- diff --git a/tests/tls/tls-cert-noissuer/README.md b/tests/tls/tls-cert-noissuer/README.md new file mode 100644 index 000000000..da5a8c027 --- /dev/null +++ b/tests/tls/tls-cert-noissuer/README.md @@ -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 index 000000000..c898d0038 --- /dev/null +++ b/tests/tls/tls-cert-noissuer/test.yaml @@ -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 index 000000000..7e5f5938c 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 index 000000000..7d613d2ef --- /dev/null +++ b/tests/tls/tls-cert-noissuer/tls.rules @@ -0,0 +1 @@ +alert tls any any -> any any (msg:"test"; flow:established,to_client; tls.cert_subject; content:"localhost"; sid:1;)