Closed krishnagupta21 closed 5 years ago
I was able to fix it by deleting all certificates (using Certificate Manager) related to DocumentDbEmulator and CosmosDbEmulator
Hi @krishnagupta21 - I have run into the same issue as you. I followed your advice of deleting all certificates related to DocumentDbEmulator and CosmosDbEmulator and am now receiving
Failed loading Emulator secrets certificate.
Did you encounter this? How did you go about deleting certificates? Any advice you could give would be greatly appreciated - I've hit a brick wall here! Thank you.
@josh-yates I know this is several years after the fact but for anyone who finds their way here if they encounter this the fix is relatively simple on Windows.
Press Windows Key + R
and type in certlm.msc
for the local certificates on the machine.
You will be looking at the "Friendly Name" column, the values you care about are the ones mentioned above - CosmosDbEmulator
and DocumentDbEmulator
.
Go to "Action > Find Certificates..." in the task bar on the certificate manager.
Search for localhost
in the field Issued By
.
The list should contain the certs you care about.
Here you should look manually for the certificates that have the friendly names you care about. I found some in the following places, all issued to localhost.
Personal > Certificates
Trusted Root Certification > Certificates
Hope this helps someone.
@krishnagupta21 @DinoSourcesRex
I still see this issue after deleting all the certs related to emulator. How to solve this?
@indupriya123 @krishnagupta21 @DinoSourcesRex After following the walkthrough by @DinoSourcesRex, I'm running into the same issue as @indupriya123. Did anyone manage to resolve this issue?
I tried the obvious thing of removing the application and reinstalling, but that doesn't solve the issue and it also doesn't bring back the deleted certificates.
Curious to if someone found a definitive solution?
Describe the bug When I try to run
CosmosDB.Emulator.Exe
I get the following error:Failed to acquire private key for Emulator secrets certificate Error: 0x80090015
I have tried uninstalling, deleting all files
AppData/Local/CosmosDbEmulator
and inProgram Files/Azure Cosmos Db Emulator
and reinstalling it. I have also triedlodctr /r
multiple times. and also triedCosmosDbEmulator /starttraces
before startingCosmosDbEmulator
To Reproduce I uninstalled an old version and reinstalled the latest version (2.2.1-2).
Expected behavior The emulator should start
Environment summary SDK Version: 2.2.1 OS Version: Windows 10-64 bit