Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/256.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何在不将commandName设置为IISExpress的情况下启用ssl_C#_Identityserver4_Ids - Fatal编程技术网

C# 如何在不将commandName设置为IISExpress的情况下启用ssl

C# 如何在不将commandName设置为IISExpress的情况下启用ssl,c#,identityserver4,ids,C#,Identityserver4,Ids,在Identity server空模板项目中,我希望在命令行中显示日志 错误:- 在launchSettings.json中 当安装程序“commandName”:“Project”命令行运行时,ssl证书无效 当我执行“commandName”:“IISExpress”SSL证书有效,但不通过命令行运行 请帮助我如何在命令行中运行日志,并使SSL同时处于项目模式。要在IIS Express中启用SSL,只需在项目属性窗口中设置“SSL Enabled=true” 2-netsh http s

在Identity server空模板项目中,我希望在命令行中显示日志

错误:-

launchSettings.json中
当安装程序
“commandName”:“Project”
命令行运行时,ssl证书无效

当我执行
“commandName”:“IISExpress”
SSL证书有效,但不通过命令行运行


请帮助我如何在命令行中运行日志,并使SSL同时处于项目模式。

要在IIS Express中启用SSL,只需在项目属性窗口中设置“SSL Enabled=true”


2-netsh http show sslcert ipport=0.0.0:44300//以管理员身份运行此命令要在IIS Express中启用SSL,只需在项目属性窗口中设置“SSL Enabled=true”


2-netsh http show sslcert ipport=0.0.0.0:44300//在IIS Express中以管理员身份运行此命令,这样就可以了。我的问题是使用kestral。在这种情况下,ssl在IIS Express中无效,这没关系。我的问题是使用kestral。在这种情况下,ssl是无效的