You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

安装Cosmos DB时出现“Failed loading emulator certificate”错误求助

Fixing "Failed loading emulator certificate" for Azure Cosmos DB Emulator

Hey there, sorry to hear you're stuck with this certificate error when setting up the Cosmos DB Emulator—let's walk through some tried-and-tested fixes to get you up and running.

  • Reset the emulator's certificates and data
    Fire up Command Prompt as an administrator, navigate to the default emulator installation directory (usually C:\Program Files\Azure Cosmos DB Emulator), then run this command:

    Microsoft.Azure.Cosmos.Emulator.exe /ResetData /ResetCertificates
    

    This will wipe any existing emulator data and regenerate fresh certificates, which often resolves loading issues.

  • Manually trust the emulator certificate
    If resetting doesn't work, locate the CosmosDBEmulatorCert.cer file in the emulator's install folder. Open the Certificate Manager (run certmgr.msc from the Start menu), then:

    1. Right-click "Trusted Root Certification Authorities" > "All Tasks" > "Import"
    2. Follow the wizard to select the .cer file and complete the import
      This ensures your system recognizes the emulator's certificate as valid.
  • Remove stale certificates
    Old, expired, or corrupted Cosmos DB certificates might be causing conflicts. In the Certificate Manager:

    • Check "Personal > Certificates" for any entries named "Azure Cosmos DB Emulator" and delete them
    • Do the same in "Trusted Root Certification Authorities > Certificates"
      Then re-run the emulator to generate new certificates.
  • Run the emulator with admin rights
    Sometimes permission restrictions prevent the emulator from accessing or loading certificates. Right-click the Azure Cosmos DB Emulator shortcut and select "Run as administrator" to rule this out.

  • Reset Winsock settings (last resort)
    If all else fails, network stack issues could be interfering. Run this command in an admin Command Prompt:

    netsh winsock reset
    

    Restart your computer, then try launching the emulator again.

内容的提问来源于stack exchange,提问作者user2566932

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.21 07:32:02