Home

How do I fix Windows Cryptographic Service Provider reported an error?

Alton Alexander
By Alton AlexanderUpdated on June 4th, 2022

Windows Cryptographic Service Provider reported an error: The keyset is not defined. This error code happens when the Windows Cryptographic Service Provider cannot find the set of keys that are required to decrypt data. This can happen if the provider is not properly configured, or if the set of keys is not available.

You are here because you have a question about:

  • error code 2147942405
  • windows cryptographic service provider reported an error

1. Restart the computer

1.Press the "Windows" button and "R" button at the same time to open the "Run" dialog box. 2.Type "services.msc" and press "Enter" to open the "Services" console. 3.If the "Cryptographic Service Provider" (CSP) is listed in the "Services" console, right-click on it and select "Restart." 4.If the "Cryptographic Service Provider" is not listed in the "Services" console, right-click on the "Computer" icon on the desktop and select "Restart."

2. Update the computer

  1. Open Windows Update by clicking on the Start button and typing “Windows Update” in the search box.
  2. Click on the “Windows Update” icon that appears in the results pane.
  3. On the “Windows Update” page, click on the “Install updates” link.
  4. When the “Update files” window opens, click on the “Browse” button.
  5. Locate the file called “WindowsCrypto.exe” and click on it.
  6. Click on the “Update” button.
  7. When the “Update files” window closes, click on the “Finish” button.
  8. Restart the computer.

3. Run the Windows Troubleshooter

  1. Open the Start Menu and type “troubleshooting”.
  2. Click on the “Troubleshooting” option in the search results.
  3. On the “Troubleshooting” page, click on the “Windows cryptographic service provider” link.
  4. On the “Windows cryptographic service provider” page, click on the “Advanced troubleshooting options” link.
  5. On the “Advanced troubleshooting options” page, click on the “Start” button.
  6. In the “Start” window, click on the “Command prompt” button.
  7. Type the following command and press Enter. scannow
  8. If the “Windows cryptographic service provider” service is not running, the system will report an error. To start the service, type the following command and press Enter. scannow /start
  9. If the “Windows cryptographic service provider” service is running, the system will report the status of the service. To view the status of the service, type the following command and press Enter. scannow /status

4. Uninstall and reinstall the cryptographic service provider

  1. Open an elevated command prompt.
  2. Type "sc stop CryptSvc"
  3. Type "sc uninstall CryptSvc"
  4. Type "sc install CryptSvc"
  5. Type "net stop CryptSvc"
  6. Type "net start CryptSvc"
  7. Type "reboot"

5. Disable the cryptographic service provider

-Expand Cryptographic Services -Right click on the cryptographic service provider -Select Disable -Exit Device Manager

If the answers above didn't work then you should also try:

  1. Enable the cryptographic service provider
  2. Change the cryptographic service provider settings