Unable to configure HTTPS endpoint. No server certificate was specified, and the default developer certificate could not be found or is out of date.
To generate a developer certificate run ‘dotnet dev-certs https’. To trust the certificate (Windows and macOS only) run ‘dotnet dev-certs https --trust’.
For more information on configuring HTTPS see https://go.microsoft.com/fwlink/?linkid=848054.
Program.Main
解决方法:把json中的https 修改为http即可
愿意分析:开发工具下调试只允许https进行访问,但是部署到服务器却不允许https,所以,修改协议。