summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/diff.go b/diff.go
index 25c9028..59e7625 100644
--- a/diff.go
+++ b/diff.go
@@ -81,7 +81,7 @@ func keys(m map[string]*x509.Certificate) []string {
}
func fmtCert(cert *x509.Certificate) string {
- return fmt.Sprintf("%s %s %s",
+ return fmt.Sprintf("%s\t%s\t%s",
cert.Subject.CommonName,
cert.NotBefore.Format("2006-01-02 15:04:05 MST(-07)"),
cert.NotAfter.Format("2006-01-02 15:04:05 MST(-07)"))
@@ -104,12 +104,12 @@ func main() {
certTLS := certsTLS[host]
certCrtSh, okCrtSh := certsCrtSh[host]
if !okCrtSh {
- fmt.Printf("-%s %s\n", host, fmtCert(certTLS))
+ fmt.Printf("-%s\t%s\n", host, fmtCert(certTLS))
} else if !certTLS.Equal(certCrtSh) {
- fmt.Printf("-%s %s\n", host, fmtCert(certTLS))
- fmt.Printf("+%s %s\n", host, fmtCert(certCrtSh))
+ fmt.Printf("-%s\t%s\n", host, fmtCert(certTLS))
+ fmt.Printf("+%s\t%s\n", host, fmtCert(certCrtSh))
} else {
- fmt.Printf(" %s %s\n", host, fmtCert(certTLS))
+ fmt.Printf(" %s\t%s\n", host, fmtCert(certTLS))
}
}
}