certbat.toml

Synopsis

/etc/certbat/certbat.toml

Description

Configuration file for certbat(1). The file uses TOML format.

Top-Level Options

domains = [“example.com”, …] : List of domain names to monitor for certificate issuance. At least one domain or a provider must be configured.

crawl_tasks = number : Number of parallel Certificate Transparency log crawl tasks.

suspicious_delay = “duration” : Duration to wait before marking a certificate as suspicious. Uses Go duration format (e.g. "5m", "1h").

alert_unparsable = bool : Emit an alert emit an alert when the crawler discovers a certificate it can not parse.

Provider Section

A [provider] section configures automatic domain discovery from a running web server. The type field selects the provider. The provider interval field sets how often domains are refreshed (default: "3m", min: "30s", max: "30h").

nginx

[provider]
type = "nginx"
interval = "5m"
config_path = "/etc/nginx/nginx.conf"

config_path = “path” : Path to the nginx configuration file.

apache

[provider]
type = "apache"
interval = "5m"

Discovers domains via apachectl -S.

traefik

[provider]
type = "traefik"
interval = "5m"
api_url = "http://localhost:9000/"

api_url = “url” : URL of the Traefik API endpoint.

caddy

[provider]
type = "caddy"
interval = "5m"
api_url = "http://localhost:2019/"

api_url = “url” : URL of the Caddy API endpoint.

custom

[provider]
type = "custom"
interval = "5m"
executable_path = "/usr/local/bin/my-provider"
args = ["--flag", "value"]

executable_path = “path” : Path to an executable that outputs domain names, one per line.

args = [“arg”, …] : Arguments to pass to the executable.

Alert Section

command = “path or program” : Program that will be used to deliver alerts. In case an alert is to be delivered, the program will be invoked with the alert sent to stdin.

args = [“arg”, …] : Arguments to the command

Historization Section

bloom_fp = “number between 0 and 1” : False positive rate used to create the bloom filters

disable = “bool” : Disable the historization feature

Logs Section

ignore_pattern = [“regex”, …] : Logs that will be excluded. Regular expressions.

additional =[{ url = “…”, kind = “static” }, …] : Add additional CT logs

## Visualization Section

listen = “address” : if specified, certbat will listen on this address and serve statistics over HTTP.

Example

domains = ["example.com", "example.org"]
crawl_tasks = 4
suspicious_delay = "10m"

[provider]
type = "nginx"
interval = "5m"
config_path = "/etc/nginx/nginx.conf"

See Also

certbat(1), certbat(7)