Can I use a PKCS#8 private key for the wildcard certificate in Okteto Self-Hosted?

Can I use a wildcard certificate with a PKCS#8 private key (BEGIN PRIVATE KEY) in self-hosted Okteto? Okteto components crash on startup with it.

Yes, from Okteto chart 1.48. Older versions only accept PKCS#1 (BEGIN RSA PRIVATE KEY) or SEC1 (BEGIN EC PRIVATE KEY).

On versions before 1.48, convert the key and update the TLS secret:

# RSA key -> PKCS#1
openssl rsa -in key.pem -traditional -out key-pkcs1.pem
# EC key -> SEC1
openssl ec -in key.pem -out key-sec1.pem

Or upgrade to 1.48+.

See Bring your own certificate.