You want to create a certificate on CredHub with non RSA private key such as ECDSA, it fails as below:
$ credhub set -n <PATH> -t certificate -p <PRIVATE_KEY> -c <CERTIFICATE>
Private key is malformed. Key file does not contain an RSA private key
Non-RSA private key is not supported by CredHub.
If you need to store a ECDSA private key (in PEM or PKCS#8 format), you will have to use one of the generic credential types:
Note: using these generic types means CredHub loses the ability to perform key-specific operations like key generation or rotation.