Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stuarthicks/tls_cert_info
CLI for viewing basic TLS (SSL) Certificate information
https://github.com/stuarthicks/tls_cert_info
cli go golang ssl ssl-certificate ssl-certificate-check tls tls-certificate tls-certificate-checker
Last synced: 4 days ago
JSON representation
CLI for viewing basic TLS (SSL) Certificate information
- Host: GitHub
- URL: https://github.com/stuarthicks/tls_cert_info
- Owner: stuarthicks
- License: mit
- Created: 2024-05-19T19:41:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-20T08:53:12.000Z (8 months ago)
- Last Synced: 2024-05-20T22:21:09.511Z (8 months ago)
- Topics: cli, go, golang, ssl, ssl-certificate, ssl-certificate-check, tls, tls-certificate, tls-certificate-checker
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tls_cert_info
Print some of the most commonly checked attributes of a TLS certificate without having to remember a very long set of openssl flags. Essentially a replacement for this:
```
❯ openssl s_client \
-connect github.com:443 \
-servername github.com \
-showcerts < /dev/null 2>/dev/null \
| openssl x509 \
-noout \
-issuer \
-subject \
-ext subjectAltName \
-startdate \
-enddateissuer=C=GB, ST=Greater Manchester, L=Salford, O=Sectigo Limited, CN=Sectigo ECC Domain Validation Secure Server CA
subject=CN=github.com
X509v3 Subject Alternative Name:
DNS:github.com, DNS:www.github.com
notBefore=Mar 7 00:00:00 2024 GMT
notAfter=Mar 7 23:59:59 2025 GMT
```## Install
Using Homebrew:
brew install stuarthicks/brews/tls_cert_info
Using Go:
go install github.com/stuarthicks/tls_cert_info@latest
## Usage
```
❯ tls_cert_info -hUsage of tls_cert_info:
-domain string
Domain to connect to
-port string
Override port to connect to (default "443")
-sni string
Override SNI domain (default matches -domain)
```Example:
```
❯ tls_cert_info -domain github.comIssuer: Sectigo Limited
Common Name: github.com
Subject Alternative Names:
github.com
www.github.com
Start Date: 2024-03-07
End Date: 2025-03-07
Remaining Days: 292
```