cert

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 1 Imported by: 0

README

cert

Retrieve SSL certificate information from provided hostname.

Why

I just simply want to retrieve a website's SSL certificate information in my terminal.

Install

$ go get github.com/tatthien/cert

For non-Go users

$ curl -sf https://gobinaries.com/tatthien/cert | sh

Usage

# Simply run cert --host=<website_without_http>
$ cert --host=12bit.vn

# Example output
> 12bit.vn
This certificate is valid
Issued by: GTS CA 1D4
 ├── Org: Google Trust Services LLC
 └── Country: US
Expires: Saturday, 25-Dec-21 02:45:49 UTC (2 months from now)

> github.com
This certificate is valid
Issued by: DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
 ├── Org: DigiCert, Inc.
 └── Country: US
Expires: Wednesday, 30-Mar-22 23:59:59 UTC (5 months from now)

> expired.badssl.com
x509: certificate has expired or is not yet valid: current time 2021-10-04T21:42:36+07:00 is after 2015-04-12T23:59:59Z

License

MIT © Thien Nguyen

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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