When importing an HTTPS certificate on IMSVA, you get the following error:
Unable to import certificate. No matched private key can be found.
In a sample case, a .crt file is being imported as public key, a .key file as a private key, and a password is being used. Keys and password are correct.
IMSVA only supports certificates in Privacy Enhanced Mail (PEM) format and private keys using the RSA algorithm. If you saved your certificate and private key in the same file, the path for the Certificate file should be specified. IMSVA will import the certificate and private key together.
IMSVA supports just the private key with RSA format headers and footers, as shown in the following:
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
The private key should be converted. Follow these steps:
- Run the following command:
# openssl pkcs12 -in yourcert.p12 -out yourcert.key –nocerts
# openssl pkcs12 -in yourcert.p12 -out yourcert.pem –nokeys - Run the following command:
# openssl rsa -in yourcert.key -out keyRSA.pem
- Enter passphrase for yourcert.key, which is you encryption password.
- Re-import it on the Admin UI.
Certificate: yourcert.pem
Private Key: keyRSA.pem