A tool to deal with SSL things | Read-only mirror of https://github.com/swisscom/ssl-tool — Swisscom. Issues & pull requests at the source.
  • Go 98.9%
  • Makefile 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Denys Vitali f7938b100f
Merge pull request #3 from denysvitali-kaiko/master
feat: add expiry styling, better UX and bug fixes
2026-02-25 11:16:00 +01:00
docs docs: rework README and add screenshot 2026-02-25 11:14:23 +01:00
pkg feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
cert_table.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
certificate.go refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
certificate_parse.go refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
client.go refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
client_get_certificate.go refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
date.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
go.mod refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
go.sum refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
keysize.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
LICENSE chore: add LICENSE 2023-03-31 17:14:44 +02:00
main.go refactor: switch CLI framework from go-arg to cobra 2026-02-25 11:12:05 +01:00
Makefile initial commit 2023-03-31 17:08:10 +02:00
print.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
print_cert_chain.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00
README.md docs: rework README and add screenshot 2026-02-25 11:14:23 +01:00
style.go feat: add expiry styling, better UX and bug fixes 2026-02-25 11:04:46 +01:00

ssl-tool

A CLI tool to inspect and retrieve SSL/TLS certificates.

ssl-tool screenshot

Installation

go install github.com/swisscom/ssl-tool@latest

Usage

ssl-tool [command] [-l log-level]

Commands:
  cert    Certificate operations
  client  Client operations

Flags:
  -l, --log-level string   log level (debug, info, warning, error) (default "warning")
  -v, --version            version for ssl-tool
  -h, --help               help for ssl-tool

ssl-tool client get-certificate <url>

Fetch and display the certificate chain from a live HTTPS endpoint.

ssl-tool client get-certificate https://expired.badssl.com
  • Displays the leaf certificate details (subject, issuer, DNS names, validity, key info)
  • Displays the full certificate chain with subject, issuer, and color-coded expiry
  • Shows a warning banner for invalid/untrusted certificates
  • Expiry dates are color-coded: green (valid), yellow (< 30 days), red (expired)

ssl-tool cert parse <certfile>

Parse and display a local PEM certificate file (single cert or chain).

ssl-tool cert parse cert.pem