Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.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
.net 验证客户端证书的最佳方法_.net_Asp.net_Security_Azure - Fatal编程技术网

.net 验证客户端证书的最佳方法

.net 验证客户端证书的最佳方法,.net,asp.net,security,azure,.net,Asp.net,Security,Azure,我在云上托管了一个安全的WCF服务,并使用makecert创建的证书 现在我想限制对服务的访问,只允许那些拥有我生成的证书的客户端 实现这一目标的最佳方法是什么 * Shall I go with the changes in the configuration file * Or Shall I write the code to validate this in the service * Is there any other alternative? 公羊, 客户端证书是如何映射的?如果

我在云上托管了一个安全的WCF服务,并使用makecert创建的证书

现在我想限制对服务的访问,只允许那些拥有我生成的证书的客户端

实现这一目标的最佳方法是什么

* Shall I go with the changes in the configuration file
* Or Shall I write the code to validate this in the service
* Is there any other alternative?
公羊, 客户端证书是如何映射的?如果它们被映射到目录服务(AD),使用配置文件应该是可以的,因为您不需要更改/添加任何代码-使用现有的经过尝试和测试的方法总是一件好事:)但是,如果您不希望/无法使用IIS映射客户端证书,则可能需要编写代码将证书映射到用户

简而言之,最佳方法将取决于您计划如何将证书映射(和管理)到用户/客户端

祝你好运

高拉夫·库马尔