genkiroid / cert

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

Add Certificate field to Cert type #12

Closed genkiroid closed 6 years ago

genkiroid commented 6 years ago

Add Certificate field to Cert type. With -t option you can output any certificate information in any format.

e.g.

$cert -t "{{range .}}Issuer - Organization: {{range .Certificate.Issuer.Organization}}{{.}}{{end}}{{end}}" github.com
Issuer - Organization: DigiCert Inc