1、dotnet dev-certs https -ep $env:USERPROFILE\.aspnet\https\aspnetapp.pfx -p 123
2、dotnet dev-certs https --trust
3、docker run --rm -it -p 80:80 -p 44394:443 -e ASPNETCORE_URLS="https://+;http://+" -e ASPNETCORE_HTTPS_PORT=44394 -e ASPNETCORE_Kestrel__Certificates__Default__Password="123" -e ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx -v $env:USERPROFILE\.aspnet\https:/https/ webapp02
标签:__,asp,ASPNETCORE,certs,https,Certificates,docker From: https://www.cnblogs.com/xinzheng/p/16632782.html