List of use cases for certificates that require specific Cryptographic Service Providers (CSP) or Key Storage Providers (KSP)

With Windows Server 2008, together with the NSA Suite B algorithms (also known as Cryptography Next Generation, CNG), key storage providers were introduced as a new, modern interface for generating, storing, and using private keys in the Windows ecosystem.

In most cases, it does not matter which CSP or KSP is used for certificates. However, some applications will not work or will not work correctly if the wrong provider is chosen.

Below is a list of use cases I know of for certificates that only work with a specific cryptographic service provider (CSP) or key storage provider (KSP).

Use cases that only accept CSP

Certificate typeSymptom/effect
Network Device Enrollment Service (NDES) Registration Authority certificatesService does not start because RA certificates are not found (events no. 2 and 10 ).
Intune Connector for NDES, client authentication certificateC:\NDESConnectorSetup\SetupMSI.log will record that the certificate private key permissions cannot be set ("AddNDESToCertPrivKey: Error 0x80090014: CryptAcquireContext failed with bad provider type 0x0").
Active Directory Web Services (ADWS) and thus, under certain circumstances, domain controllers and Remote Desktop as wellEvent #1402 of the source ADWS is logged. The debug log records: "ProvisionCertificate: caught a CryptographicException: System.Security.Cryptography.CryptographicException: Invalid provider type specified.".
The certificate selection already aborts if just one of the certificates in the machine certificate store does not use a CSP, even if that certificate would not be usable for the ADWS at all.
Exchange 2013 Forms-based Authentication (FBA)
Exchange 2016 (up to CU3) Forms-based Authentication (FBA)
After logging on to FBA, you end up back on the logon page.
Certificate import can fail with error code NTE_BAD_DATA .
Forefront Identity Manager (FIM) / Microsoft Identity Manager (MIM)
Certificate Management (CM) Agent
Forefront Identity Manager (FIM) / Microsoft Identity Manager (MIM)
Certificate Management (CM) Admin Key Diversify
Forefront Identity Manager (FIM) / Microsoft Identity Manager (MIM)
Certificate Management (CM) Key Recovery Agent
Microsoft SQL ServerThe RSA SChannel Cryptographic Provider is recommended

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.

Details: Intune Connector for NDES

If a certificate based on a key storage provider (KSP) is used, the setup aborts with a meaningless error message.

Microsoft Intune Connector Setup Wizard ended prematurely because of an error. Your system has not been modified. To install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard.

Dialog "Microsoft Intune Connector Setup": "Microsoft Intune Connector Setup Wizard ended prematurely" because of an error

The log file C:\NDESConnectorSetup\SetupMSI.log will record that the permissions on the certificate private key cannot be set.

AddNDESToCertPrivKey: Error 0x80090014: CryptAcquireContext failed with bad provider type 0x0

Notepad, SetupMsi log: "AddNDESToCertPrivKey:  Error 0x80090014: CryptAcquireContext failed with bad provider type 0x0" highlighted

The problem can be solved by using a certificate template with Windows Server 2003 or Windows XP compatibility. This way, a cryptographic service provider (CSP) is used to generate the key pair.

Template properties "ADCS Labor InTune Connector 2", "Cryptography" tab: Provider Category "Legacy Cryptographic Service Provider"

Use cases that only accept KSP

Certificate typeImpact
Microsoft Online Responder (OCSP) signing certificateNot configurable.

External sources