id: fortiweb-certificate

info:
  name: Fortinet FortiWEB Certificate - Detect
  author: johnk3r
  severity: info
  metadata:
    verified: true
    max-request: 1
    shodan-query: ssl:"cn=fortiweb"
  tags: ssl,tls,fortinet,fortiweb,discovery

ssl:
  - address: "{{Host}}:{{Port}}"

    matchers-condition: and
    matchers:
      - type: word
        part: subject_dn
        words:
          - "emailAddress=support@fortinet.com"

      - type: word
        part: subject_dn
        words:
          - "CN=FortiWEB"

    extractors:
      - type: dsl
        dsl:
          - 'subject_cn'
# digest: 4a0a004730450221009c6bf851844d8676f3f5d45eda853f8efd98cf1a2680224bc12a6135775c730202200f177e67f69acc2be14b4a3f1b2229c05af0eaf780afbaeb0436c81ccd2e4cd3:922c64590222798bb761d5b6d8e72950