From 3ef08f74134c2edad18000065028d03de180a3d1 Mon Sep 17 00:00:00 2001 From: xenolf Date: Sat, 17 Oct 2015 22:27:04 +0200 Subject: [PATCH] Add a comment to GetCertExpiration --- acme/crypto.go | 1 + 1 file changed, 1 insertion(+) diff --git a/acme/crypto.go b/acme/crypto.go index fc0ff288..8be4c76a 100644 --- a/acme/crypto.go +++ b/acme/crypto.go @@ -34,6 +34,7 @@ func pemEncode(data interface{}) []byte { return pem.EncodeToMemory(pemBlock) } +// GetCertExpiration returns the "NotAfter" date of a DER encoded certificate. func GetCertExpiration(cert []byte) (time.Time, error) { pCert, err := x509.ParseCertificate(cert) if err != nil {