gpt4 book ai didi

dotnet-dev-certs - 使用 'dotnet dev-certs'工具导出https证书失败

转载 作者:行者123 更新时间:2023-12-03 16:49:57 44 4
gpt4 key购买 nike

我正在尝试使用'dotnet dev-certs'工具导出https证书以包含在Docker镜像中。现在我正在使用:

dotnet dev-certs https -v -ep $(HOME)\.aspnet\https -p <password>

我得到错误:
Exporting the certificate including the private key.
Writing exported certificate to path 'xxx\.aspnet\https'.
Failed writing the certificate to the target path
Exception message: Access to the path 'xxx\.aspnet\https' is denied.
An error ocurred exporting the certificate.
Exception message: Access to the path 'xxx\.aspnet\https' is denied.
There was an error exporting HTTPS developer certificate to a file.

我看到的问题是,无论我提供的导出证书的路径如何,都得到相同的“拒绝访问该路径”错误。我想念什么?我知道在很多地方都建议使用此命令。但是我似乎无法使它正常工作。

谢谢你。

最佳答案

导出路径应指定文件,而不是目录。这在Mac上为我解决了这个问题:dotnet dev-certs https -v -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p <password>

关于dotnet-dev-certs - 使用 'dotnet dev-certs'工具导出https证书失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60011646/

44 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com