oci-go-sdk icon indicating copy to clipboard operation
oci-go-sdk copied to clipboard

encrypted PKCS#8 API private keys are not supported

Open obno opened this issue 1 year ago • 1 comments

Private keys created from either openssl genrsa or oci setup config are in encrypted PKCS#8 format by default. However x509.ParsePKCS8PrivateKey only supports unecrypted private keys.

This is a bit of a let down for golang based CLIs where users typically expect to use keys generated from oci setup config.

You could use github.com/youmark/pkcs8 for parsing keys, which supports encrypted keys, instead of the golang std library.

obno avatar Jan 30 '24 07:01 obno