A lightweight CLI tool that inspects an HTTPS host, reads its TLS certificate chain, and prints fingerprints and SPKI pins locally.
- SHA1 & SHA256 fingerprints
- SPKI pins (Base64/Hex)
- Certificate validity & expiration
- Issuer, subject, serial number
- TLS connection details
# one-off
npx sslpin google.com
# global install
npm install -g sslpinsslpin google.com
sslpin google.com --json
sslpin https://example.com --leaf-only
sslpin example.com --copy spkiSupports bare domains and HTTPS URLs. Use --help for the full list.
-v, --version: Show version--json: Output in JSON format--leaf-only: Show only the leaf certificate--copy <field>: Copyspki,sha256, orpem-h, --help: Show help
yarn build
node packages/cli/bin/sslpin google.comThe published CLI is sslpin only. packages/core stays as an internal workspace package and is bundled into the CLI build.
We welcome contributions! Please see our Contributing Guide for details.
Licensed under the MIT License - see the LICENSE file for details.