certspotter-authorize(8)
π NAME π
certspotter-authorize β authorize certificates to suppress certspotter notifications. Manual name: certspotter-authorize(8) from the System Manager's Manual π
β¨ SYNOPSIS β¨
certspotter-authorize [-printhash] CERTFILEβ¦
certspotter-authorize [-printhash] -
πΈ DESCRIPTION πΈ
Okay so bestie, certspotter-authorize is the utility that preemptively authorizes certificates so that certspotter(8) will not send notifications when those certificates are discovered in Certificate Transparency logs. No cap, it's the "I already know about this one" button.
This is lowkey useful for preventing false alarms when you know in advance that a certificate will be issued. For example, you might run certspotter-authorize immediately after receiving a certificate from your certificate authority, as part of your certificate issuance pipeline. Iconic behavior, honestly π
certspotter-authorize uses the TBSCertificate hash as defined by RFC 6962 Section 3.2 to identify certificates. This hash is the same for a certificate and its corresponding precertificate. That means authorizing the certificate will suppress notifications for the precertificate as well. Slay.
Heads up though: certificates with different serial numbers, validity periods, or other changes to the TBSCertificate will not be covered by the authorization and will trigger notifications. So don't come for this utility unless you're coming correct π
π¦ ARGUMENTS π¦
certspotter-authorize takes paths to one or more PEM-encoded certificates on the command line. If - is specified as the sole path, it reads the certificate from stdin. That's it, that's the whole argument situation π«Ά
π OPTIONS π
-state_dirPATH β Directory where certspotter stores state. Defaults to$CERTSPOTTER_STATE_DIRif set, or~/.certspotterotherwise. This should be the same directory used bycertspotter(8).-printhashβ Instead of authorizing the certificate, print its TBS hash (a hex-encoded SHA-256 digest) to stdout.-versionβ Print version information and exit.
π EXAMPLES π
Authorize a certificate from a file β classic move:
$ certspotter-authorize /path/to/cert.pem
Authorize multiple certificates from files β more certs, more slay:
$ certspotter-authorize cert-a.pem cert-b.pem
Authorize a certificate from stdin β pipe it, bestie:
$ cat cert.pem | certspotter-authorize -
Authorize a certificate in a custom state directory β when you're doing custom state dir things:
$ certspotter-authorize -state_dir /var/lib/certspotter cert.pem
Print the TBS hash without authorizing β just the hash, no authorization, iykyk:
$ certspotter-authorize -printhash /path/to/cert.pem
π₯ OPERATION π₯
certspotter-authorize computes the SHA-256 hash of each certificateβs TBSCertificate as defined by RFC 6962 Section 3.2, and creates a .notified marker file in the certspotter state directory. When certspotter later discovers a certificate with the same TBSCertificate in a CT log, it will skip sending notifications because the marker file is present. Periodt π
πΏ ENVIRONMENT πΏ
CERTSPOTTER_STATE_DIRβ Directory for storing state. Overridden by-state_dir. Defaults to~/.certspotter. This should be the same directory used bycertspotter(8).
π FILES π
$CERTSPOTTER_STATE_DIR/certs/XX/.HASH.notifiedβ Marker files indicating that a certificate with TBS hashHASHhas been authorized.XXis the first two hex digits of the hash. The file is empty; only its existence is checked. Yes, it's giving "my presence is my personality" β¨
π EXIT STATUS π
certspotter-authorize exits with status 0 on success, 1 on error, or 2 on invalid usage.
π SEE ALSO π
certspotter(8), certspotter-script(8)
And that's the tea β β certspotter-authorize(8), System Manager's Manual, date-stamped 1980-01-01. Byeee, go authorize those certs ππ¦
π¦ where this page comes from
- nixos 26.05: certspotter 0.24.0
- nixpkgs unstable: certspotter 0.25.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms