Adds tests for `tls.subject` legacy keyword and `tls.cert_subject` new keyword.
Ticket #5544
--- /dev/null
+Description
+===========
+Tests the `tls.subject` legacy keyword.
+Tests the `tls.cert_subject` new keyword.
+Both represent TLS/SSL certificate Subject field.
+
+PCAP
+====
+PCAP comes from an [existing TLS test](https://github.com/OISF/suricata-verify/blob/master/tests/tls/tls-cert-issuer/tls.pcap)
+
+Redmine ticket
+==============
+https://redmine.openinfosecfoundation.org/issues/5544
--- /dev/null
+pcap: ../tls-cert-issuer/tls.pcap
+
+checks:
+ - filter:
+ count: 4
+ match:
+ event_type: tls
+ tls.subject: C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS
+
+ - filter:
+ count: 4
+ match:
+ event_type: alert
+ alert.signature_id: 1
+
+ - filter:
+ count: 4
+ match:
+ event_type: alert
+ alert.signature_id: 2
\ No newline at end of file
--- /dev/null
+# tests tls legacy keyword tls.subject
+alert tls any any -> any any (msg:"TLS subject keyword"; tls.subject:"C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS"; sid:1; rev:1;)
+
+# tests tls new keyword tls.cert_subject
+alert tls any any -> any any (msg:"TLS cert_subject keyword"; tls.cert_subject; content:"C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS"; sid:2; rev:1;)
\ No newline at end of file