Skip to content

Commit 3f50133

Browse files
OpenSSL PEM generates PKCS openshift#8 keys (kubernetes#1911) (kubernetes#1915)
* POC PKCS8 * formatting fix with gofmt Co-authored-by: Laurence Gill <[email protected]>
1 parent b131834 commit 3f50133

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/ingress/controller/controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,6 +1025,8 @@ func privateKeyFromPEM(pemData []byte) (crypto.PrivateKey, error) {
10251025
return x509.ParsePKCS1PrivateKey(result.Bytes)
10261026
case "EC PRIVATE KEY":
10271027
return x509.ParseECPrivateKey(result.Bytes)
1028+
case "PRIVATE KEY":
1029+
return x509.ParsePKCS8PrivateKey(result.Bytes)
10281030
}
10291031
}
10301032
}

0 commit comments

Comments
 (0)