NCryptOpenStorageProvider + KeyIso

kazuser 0 Reputation points
2024-08-24T19:20:22.8933333+00:00

Restarting the service after opening the provider breaks the connection and forces you to restart the entire application.

Step by step:

  1. Open the provider NCryptOpenStorageProvider(myProvider, MS_KEY_STORAGE_PROVIDER, 0) — will be "00000000" (ERROR_SUCCESS)
  2. Restart the CNG Key Isolation service
  3. Reopen the provider NCryptOpenStorageProvider(myProvider, MS_KEY_STORAGE_PROVIDER, 0) — will be "80070006" (ERROR_INVALID_HANDLE)

How to properly reopen the provider after restarting the service without restarting the application?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.