genkiroid / cert

Cert is the Go tool to get TLS certificate information.
MIT License
245 stars 37 forks source link

Add skip verify option #4

Closed genkiroid closed 7 years ago

genkiroid commented 7 years ago

Verify (default)

$ cert example.com
DomainName: example.com
Issuer:
NotBefore:
NotAfter:
CommonName:
SANs:       []
Error:      x509: certificate signed by unknown authority

Skip verify (option)

$ cert -k example.com
DomainName: example.com
Issuer:     Fake LE Intermediate X1
NotBefore:  2017/09/29 13:37:03
NotAfter:   2017/12/28 13:37:03
CommonName: example.com
SANs:       [example.com www.example.com]
Error: