genkiroid / cert

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

User template feature #11

Closed genkiroid closed 6 years ago

genkiroid commented 6 years ago

Implement user template feature. (-t option.)

Specify the output format as Go template string directly or template file path.

Directly

$cert -t "{{range .}}Issuer: {{.Issuer}}{{end}}" github.com
Issuer: DigiCert SHA2 Extended Validation Server CA

File path

$cert -t user_templ github.com
Issuer: DigiCert SHA2 Extended Validation Server CA