Azure Key Vault Connection Fails with Error, “The certificate certificate does not have a private key”
Symptom
After upgrading Certificate Manager, Self-Hosted (f.k.a. Venafi TPP) to 25.1 or higher, provisioning certificates to Azure Key Vault fails with the following error:
Azure Key Vault - Certificate Import Error "The certificate could not be imported into the key vault. Error: Failed to install a certificate in the key vault. The certificate certificate does not have a private key.
Installation Validation and Onboard Discovery also fail with similar errors.
Environment
TPP/TLSPDC TLSPDC
This issue occurs when the TPP servers are running Windows Server 2016.
Cause
The underlying PKIX enhancements introduced in 25.1 brought a new policy setting: "Pkcs#12 Encryption Algorithm". The default setting for this value is an algorithm that is incompatible with Windows Server 2016. As such, when the provisioning, validation, etc. are initiated from a TPP server that cannot leverage the stronger algorithm, it fails indicating the certificate used for authentication does not have a private key.
Resolution
Change the policy setting for Pkcs#12 Encryption Algorithm" to something such as: PBE-SHA1-3DES. This will be done on the policy folder where the certificate credential for Azure's connection is stored. Please contact Customer Support for assistance in changing this policy value if you have issues.