skip to Main Content

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 AppDataLocalCosmosDBEmulator
  • 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!

3

Answers


  1. 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.

    Login or Signup to reply.
  2. Simple solution:

    https://stackoverflow.com/a/47646463/8665500

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

    Login or Signup to reply.
  3. In Chrome, enable allow insecure localhost:

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

    And for Edge, the same flag is here:

    edge://flags/#allow-insecure-localhost
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search