Skip to content

Commit 47b0dd2

Browse files
committed
Marshal EC private key
1 parent af9d899 commit 47b0dd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/tls-cert-gen/certs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func generateTLSKeyPair(template, parent x509.Certificate, parentPriv *ecdsa.Pri
101101

102102
keyOut := &bytes.Buffer{}
103103

104-
privBytes, err := x509.MarshalPKCS8PrivateKey(parentPriv)
104+
privBytes, err := x509.MarshalECPrivateKey(parentPriv)
105105
if err != nil {
106106
return nil, fmt.Errorf("failed to marshal private key: %w", err)
107107
}

0 commit comments

Comments
 (0)