{
  "name": "Get Certificates",
  "description": "Get certificates installed on this machine",
  "hosts": ["local", "remote"],
  "functions": {
    "run": {
      "command": "dir cert: -Recurse",
      "method": "invoke",
      "json": true,
      "result": {
        "filter": {
          "file": "allowedcertificates.json",
          "pass": "Recognized certificate",
          "fail": "Certificate needs manual approval"
        },
        "label": "Subject",
        "data": [
          {"labelled": "FriendlyName"},
          {"labelled": "Thumbprint"}
        ]
      }
    }
  }
}