代码之家  ›  专栏  ›  技术社区  ›  mercury

无法在mac上设置dotNet证书

  •  0
  • mercury  · 技术社区  · 2 年前

    我到处搜索,虽然我有一个有效的证书,但总是要求安装证书。

    "Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.\nTo generate a developer certificate run 'dotnet dev-certs https'. To trust the certificate (Windows and macOS only) run 'dotnet dev-certs https --trust'.\nFor more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054

    我所做的 1-多次删除钥匙链。 3-证书测试 A valid HTTPS certificate is already present . 4-我做到了 dotnet dev-certs https --clean dotnet dev-certs https 然后 dotnet dev-certs https --trust A valid HTTPS certificate is already present.

    仍然无法运行MVC web应用程序。错误再次出现。

    0 回复  |  直到 2 年前
        1
  •  0
  •   mercury    2 年前

    这是 KeyChain 从密钥链中删除证书,然后 Run without Debugging