id: fortiswitch-certificate

info:
  name: Fortinet FortiSwitch Certificate - Detect
  author: johnk3r
  severity: info
  metadata:
    verified: true
    max-request: 1
    shodan-query: ssl:"ou=fortiswitch"
  tags: ssl,tls,fortinet,fortiswitch

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

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

      - type: word
        part: subject_dn
        words:
          - "OU=FortiSwitch"

    extractors:
      - type: dsl
        dsl:
          - 'subject_cn'
# digest: 490a00463044022056c0ce72759066cba9f3a63fb2b4ec6f1a8f313dec64b050230c4935d14e0e5d02202e9879d8246125247970df4caa029e98e018a5ce395021e0146331e8a765e884:922c64590222798bb761d5b6d8e72950