certstream-slack
is a small daemon that watches your domains in Certificate Transparency logs and posts them into Slack. It uses the API provided by Cali Dog Security rather than parsing the CT logs directly. Thanks to Cali Dog Security for this service!
-
Compile:
go install -v github.com/heptiolabs/certstream-slack
-
Run:
SLACK_WEBHOOK_URL='https://hooks.slack.com/services/[...]' DOMAIN_PATTERN='example' certstream-slack
-
SLACK_WEBHOOK_URL
: a Slack incoming webhook URL. The Slack configuration controls the name of the bot and the channel into which it will post. Leave this unset to skip posting to Slack (log only, useful for debugging). -
DOMAIN_PATTERN
: A Go regular expression. Certificates for domains that match this pattern will be posted to Slack. Consider watching your company's name and product names, for example:(mycompany)|(myproduct1)|(myproduct2)
.