mirror of https://github.com/docker/docs.git
Remove an incorrect comment.
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č <mitr@redhat.com>
This commit is contained in:
parent
2bfadacf34
commit
74d327f273
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue