From 28548792196eedd8ee8c2947fa7c5dc2e0526982 Mon Sep 17 00:00:00 2001 From: Wim Fabri Date: Tue, 30 Jan 2018 15:15:30 +0100 Subject: [PATCH] revoke all existing certificates for FQDN instead of only first one --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 59aebaa..e68c345 100644 --- a/main.go +++ b/main.go @@ -370,7 +370,10 @@ func revokeCertificateByFQDN(fqdn string) error { for _, cert := range certs { if cert.Subject.CommonName == fqdn { - return revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")) + err := revokeCertificateBySerial(certutil.GetHexFormatted(cert.SerialNumber.Bytes(), ":")) + if err != nil { + return err + } } }