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 type | Symptom/effect |
|---|---|
| Network Device Enrollment Service (NDES) Registration Authority certificates | Service does not start because RA certificates are not found (events no. 2 and 10 ). |
| Intune Connector for NDES, client authentication certificate | C:\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 well | Event #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 Server | The 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.
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
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.

Use cases that only accept KSP
| Certificate type | Impact |
|---|---|
| Microsoft Online Responder (OCSP) signing certificate | Not configurable. |
External sources
- SQL Server service can't start after you configure an instance to use a Secure Sockets Layer certificate (Microsoft)
- Outlook Web App and ECP redirect to the FBA page in Exchange Server 2013 (Microsoft)
- The One With The FBA Redirect Loop (Microsoft)
- Securing and Hardening Network Device Enrollment Service for Microsoft Intune and System Center Configuration Manager (Microsoft)
- Installing NDES connector for Intune fails to install NDES certificate (Microsoft)
- certutil 0x80090005 (-2146893819 NTE_BAD_DATA) (ugg.li)
- Active Directory Web Services was unable to process the server certificate. (Microsoft TechNet Forums)
- "Invalid provider type specified" error when accessing X509Certificate2.PrivateKey on CNG certificates (MSDN Blogs, archive link)
