From 74d327f2730e9fc7dcf3b8aba195c45c97f136f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 2 Dec 2015 17:08:20 +0100 Subject: [PATCH] Remove an incorrect comment. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commented code is not converting DER to PEM, it is parsing DER into an in-memory data structure, and is hopefully just as clear without a comment. Signed-off-by: Miloslav Trmač --- cryptoservice/certificate.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cryptoservice/certificate.go b/cryptoservice/certificate.go index a23bac83ec..b9efc84db0 100644 --- a/cryptoservice/certificate.go +++ b/cryptoservice/certificate.go @@ -26,7 +26,6 @@ func GenerateCertificate(rootKey data.PrivateKey, gun string) (*x509.Certificate return nil, fmt.Errorf("failed to create the certificate for: %s (%v)", gun, err) } - // Encode the new certificate into PEM cert, err := x509.ParseCertificate(derBytes) if err != nil { return nil, fmt.Errorf("failed to parse the certificate for key: %s (%v)", gun, err)