Skip to content

Commit

Permalink
tests: add tls client cert match test
Browse files Browse the repository at this point in the history
  • Loading branch information
victorjulien committed May 29, 2024
1 parent 95585e5 commit a8d9424
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/tls/tls-client-cert-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
requires:
min-version: 7

args:
- -k none

pcap: ../tls-store-02/tls-client-auth.pcap

checks:
- filter:
count: 1
match:
event_type: alert
app_proto: tls
alert.signature_id: 1
- filter:
count: 1
match:
event_type: tls
5 changes: 5 additions & 0 deletions tests/tls/tls-client-cert-01/tls.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
alert tls any any -> any any ( \
tls.cert_subject; content:"O=TLSClientAuthSampleClient"; \
tls.cert_issuer; content:"O=TLSClientAuthSampleCA"; \
tls.cert_fingerprint; content:"32:56:41:d0:6a:ff:47:cb:21:e4:89:c5:ae:2a:a2:d8:1b:c9:70:0c"; \
sid:1; rev:1;)

0 comments on commit a8d9424

Please sign in to comment.