expirely-cli

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

README

expirely CLI

Know which certificate expires next, before your users do.

By 2029 a public TLS certificate lives 47 days at most (CA/Browser Forum ballot SC-081), and the ones renewed by hand are the ones that break. expirely checks your hosts, AWS accounts and Google Cloud projects and tells you what expires, when, and what still serves it.

expirely example.com api.example.com:8443
expirely -f hosts.txt
expirely aws --profile production
expirely gcp --project production

It only reads: a TLS handshake, or a few list calls to AWS or Google Cloud. Exit code 1 means something needs renewing, so the same command gates CI, alerts from cron and gives AI agents JSON.

Install

go install github.com/bycavii/expirely-cli/cmd/expirely@latest

Archives for Linux, macOS and Windows are on the releases page.

Documentation

The docs live in docs and run with just docs. expirely is in early development; until 1.0 the changelog lists every change to flags, JSON and codes.

License

Apache-2.0. See CONTRIBUTING.md to contribute.

Directories

Path Synopsis
cmd
expirely command
Command expirely finds TLS certificates and reports when they expire.
Command expirely finds TLS certificates and reports when they expire.
internal
acm
Package acm reads the certificates AWS Certificate Manager holds in one account and region.
Package acm reads the certificates AWS Certificate Manager holds in one account and region.
cli
Package cli implements the expirely command line: it parses arguments, writes results to stdout and errors to stderr, and returns the process exit code instead of calling os.Exit, so tests drive it through Run.
Package cli implements the expirely command line: it parses arguments, writes results to stdout and errors to stderr, and returns the process exit code instead of calling os.Exit, so tests drive it through Run.
gcp
Package gcp reads the certificates a Google Cloud project serves from its load balancers: the Compute Engine SSL certificates, global and regional, with the target HTTPS and SSL proxies that use them, and the certificates in Certificate Manager, with the resources that use them.
Package gcp reads the certificates a Google Cloud project serves from its load balancers: the Compute Engine SSL certificates, global and regional, with the target HTTPS and SSL proxies that use them, and the certificates in Certificate Manager, with the resources that use them.
gcp/gcptest
Package gcptest serves fake Compute Engine and Certificate Manager API responses for tests, so code that lists certificates runs without Google Cloud.
Package gcptest serves fake Compute Engine and Certificate Manager API responses for tests, so code that lists certificates runs without Google Cloud.
probe
Package probe connects to a TLS endpoint and reads the certificate chain it presents.
Package probe connects to a TLS endpoint and reads the certificate chain it presents.
scan
Package scan turns probe results into findings: for each target, whether the certificate chain it serves is ok, expiring within a warning window, expired, or could not be read.
Package scan turns probe results into findings: for each target, whether the certificate chain it serves is ok, expiring within a warning window, expired, or could not be read.
target
Package target parses the endpoints expirely scans.
Package target parses the endpoints expirely scans.
tlstest
Package tlstest runs TLS servers on 127.0.0.1 with certificates generated in the test, so that tests read real handshakes without the network.
Package tlstest runs TLS servers on 127.0.0.1 with certificates generated in the test, so that tests read real handshakes without the network.
ui
Package ui styles what expirely shows a person at a terminal.
Package ui styles what expirely shows a person at a terminal.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL