Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/15.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.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
Windows 我应该在netsh.exe中使用什么appid?_Windows_Wcf_Ssl_Netsh - Fatal编程技术网

Windows 我应该在netsh.exe中使用什么appid?

Windows 我应该在netsh.exe中使用什么appid?,windows,wcf,ssl,netsh,Windows,Wcf,Ssl,Netsh,netsh命令需要一个appid(): 到目前为止,我还无法理解如何知道netsh希望我提供的GUID。任何提示?您可以使用任何有效的GUID。它只允许您以后识别绑定。我使用了我的WCF服务的应用程序GUID,该服务位于宿主应用程序(Windows服务)的AsseblyInfo.vb(vb.NET)或AssemblyInfo.cs(C#)文件中,如下所示: <Assembly: Guid("8fbacae2-bd4e-8ef5-b202-1561845dd04f")> 它工作得很

netsh命令需要一个appid():


到目前为止,我还无法理解如何知道netsh希望我提供的GUID。任何提示?

您可以使用任何有效的GUID。它只允许您以后识别绑定。

我使用了我的WCF服务的应用程序GUID,该服务位于宿主应用程序(Windows服务)的AsseblyInfo.vb(vb.NET)或AssemblyInfo.cs(C#)文件中,如下所示:

<Assembly: Guid("8fbacae2-bd4e-8ef5-b202-1561845dd04f")> 

它工作得很好,我的WCF服务通过SSL证书使用Https。

如果您使用IIS GUI(inetmgr.exe)绑定证书,然后执行“netsh http show sslcert”,您将看到{4dc3e181-e14b-4a21-b022-59fc669b0914}的AppID,这是IIS使用的AppID,所以它也是我使用的AppID。

它总是说参数无效

请尝试
appid=“{7E46BD40-39C6-4813-B414-019AD112333}”

引用

(很抱歉,这不是这个问题的直接答案,但这通常是谷歌的第一次点击,很多人似乎都有这个问题。
更多:)

稍后?什么时候更晚,比如你可能会做什么?@Tim:你可以稍后运行“netsh-http-show-sslcert”,并可能想确定哪个应用程序添加了什么绑定。但是,我看不出该功能有多大价值。要创建有效的GUID,可以使用Visual Studio(工具->创建GUID->选择“4.注册表格式”)。如果一台服务器中有多个应用程序,并且每个应用程序都添加多个绑定。有一天你可以把一台迁移到另一台服务器上吗?通过GUID可以找到分配给应用程序的所有绑定。一个应用程序的GUID必须相同-当您创建绑定时…:-)。这对我不起作用。我收到错误:SSL证书添加失败,错误:1312指定的登录会话不存在。它可能已经被终止。你能帮我在WCF上设置HTTPS吗?我有一个服务器和一个客户端,我一辈子都不能让它工作(这可能不是一个非常好的主意,因为appid的目的是区分不同应用程序添加的证书。
<Assembly: Guid("8fbacae2-bd4e-8ef5-b202-1561845dd04f")> 
appid={8fbacae2-bd4e-8ef5-b202-1561845dd04f}