Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Cosmos DB Emulator - Invalid SSL Certificate

Normally I would launch Azure Cosmos DB Emulator.exe (installed on Windows 10) and it would launch Chrome at https://localhost:8081/_explorer/index.htm saying "Congratulations! Your Azure Cosmos DB emulator is running.", easy peasy. But today I have an issue, it resulted with Chrome saying the SSL Certificate is invalid, Firefox too.

chrome error

firefox error

In an attempt to start again I've tried the following:

  • uninstalling the emulator
  • going to certlm.msc deleting all certificates called 'localhost'
  • deleting the folder at AppData\Local\CosmosDBEmulator
  • restarting my Windows machine
  • reinstalling

Same happens. Every time I re-install and run the emulator, it adds a couple of 'localhost' certificates behind the scenes (below), but they don't seem to be trusted based on what the browser is saying. Based on the names, the ones in Trusted Root Certificate Authorities seem to match up with the certificates in Personal. These must be self-signed certs the browser is complaining about ?? (correct me if I'm wrong, I'm not an expert on this). I also tried a video on getting a certificate trusted via exporting/importing the certificate, but that did nothing either.

certificates in Personal certificates in Trusted Root Certificate Authorities

Is it possible that I can get my browsers to see these certificates as valid? Just want it to work like before - running the emulator and have localhost work on any browser without the need to mess with certificates or any browser settings. Any help appreciated!

like image 934
AndyB_Dev Avatar asked Dec 04 '25 13:12

AndyB_Dev


1 Answers

I ran into the same issue. I could not fix it yet, but when I opened it with Microsoft Edge it worked flawlessly. I hope this helps you get going.

like image 90
Eduardo Heidrich Avatar answered Dec 06 '25 06:12

Eduardo Heidrich



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!