genkiroid / cert

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

Use Time.String value for output format #5

Closed genkiroid closed 7 years ago

genkiroid commented 7 years ago

Before

$ cert github.com
DomainName: github.com
Issuer:     DigiCert SHA2 Extended Validation Server CA
NotBefore:  2016/03/10 09:00:00
NotAfter:   2018/05/17 21:00:00
CommonName: github.com
SANs:       [github.com www.github.com]
Error:

After

$ cert github.com
DomainName: github.com
Issuer:     DigiCert SHA2 Extended Validation Server CA
NotBefore:  2016-03-10 09:00:00 +0900 JST
NotAfter:   2018-05-17 21:00:00 +0900 JST
CommonName: github.com
SANs:       [github.com www.github.com]
Error: