关于.NET6后端程序(api)部署ssl证书的问题(https) 解决ing
https://blog.csdn.net/weixin_45507349/article/details/132448834
var builder = WebApplication.CreateBuilder(args);
builder.WebHost.UseKestrel(options =>
{
options.Listen(IPAddress.Loopback, 5000);
options.Listen(IPAddress.Loopback, 5001,
listenOptions =>
{
listenOptions.UseHttps("certificate.pfx","topsecret");
});
});