-
Notifications
You must be signed in to change notification settings - Fork 539
Bug: rootCA certificate parsing missing PEM decode step #1666
Copy link
Copy link
Closed
Description
Here:
| if cert, err := x509.ParseCertificate([]byte(c.params.rootCA)); err != nil { |
x509.ParseCertificate expects DER-encoded ASN.1 data: https://pkg.go.dev/crypto/x509#ParseCertificate
| ParseCertificate parses a single certificate from the given ASN.1 DER data.
Certificates in ConfigMaps are typically stored in PEM format
Need to use pem.Decode to convert from PEM to DER before parsing.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels