Azure Cosmos DB Emulator - Invalid SSL Certificate
Asked Answered
S

3

17

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!

Steamer answered 4/9, 2022 at 21:22 Comment(2)
i also have the same problemCrocket
hey @Crocket I decided to move forward as there's not much help (yet) and it's not worth spending anymore of my time on it. SO the short-term solution was to just allow insure certificates for localhost on Chrome: https://mcmap.net/q/35904/-getting-chrome-to-accept-self-signed-localhost-certificate-closed It allowed me to carry on my work without the need to switch to Firefox and proceeding to accept the "risk" on every launch.Steamer
O
11

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.

Ornithorhynchus answered 5/10, 2022 at 15:34 Comment(1)
It is working again in Chrome, with the latest version. Maybe check your version of it.Ornithorhynchus
G
10

Simple solution:

https://mcmap.net/q/35904/-getting-chrome-to-accept-self-signed-localhost-certificate-closed

Just type 'thisisunsafe' on the danger page, and it proceeds to the page

Grizzled answered 24/10, 2022 at 0:18 Comment(2)
In my comment I provided a link from the same thread, they mention this as an alternative solution. Is it a persisted action? otherwise I'm not sure if typing 'thisisunsafe' everytime localhost fires up is the best solution vs chrome://flags/#allow-insecure-localhostSteamer
I think every time you close the chrome, and you want to open "Data explorer" you have to type the cheat-code, anyway I always prefer to type the cheat-code, not an issue at allGrizzled
G
6

In Chrome, enable allow insecure localhost:

chrome://flags/#allow-insecure-localhost

And for Edge, the same flag is here:

edge://flags/#allow-insecure-localhost
Greenfield answered 30/1, 2023 at 21:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.