【发布时间】:2017-06-13 21:13:54
【问题描述】:
这与my other question有关。
大部分脚手架问题都已解决,但出现与证书相关的错误:
在 appsettings.json 我有以下内容:
"Kestrel": {
"Endpoints": {
"Localhost": {
"Address": "127.0.0.1",
"Port": "53688"
},
"LocalhostHttps": {
"Address": "127.0.0.1",
"Port": "44384",
"Certificate": "HTTPS"
}
}
},
在 appsettings.Development.json 中:
"Certificates": {
"HTTPS": {
"Source": "Store",
"StoreLocation": "LocalMachine",
"StoreName": "My",
"Subject": "CN=localhost",
"AllowInvalid": true
},
为什么要求生产证书?
为什么我需要脚手架证书?
【问题讨论】:
标签: asp.net-core ssl-certificate visual-studio-2017 asp.net-mvc-scaffolding asp.net-core-2.0