首页 > 解决方案 > 在 IIS 中从 http 移植到 https

问题描述

我在将我的网站从 http 移植到 https 时遇到问题,特别是在我调用任何 WS 时。这是我遵循的步骤:

  1. 在 IIS 中导入证书
  2. 将安全模式从“消息”更改为“TransportWithMessageCredential”

我收到了这个错误:

SecurityNegotiationException: The server certificate with name XXXXX failed identity verification
because its thumbprint ('XXXXXXX') does not match the one specified in the endpoint identity ('YYYYYY').  
As a result, the current HTTPS request has failed.  
Please update the endpoint identity used on the client or the certificate used by the server. 

有什么问题 ?
会不会是连接缓存的问题?
我该如何预防?

标签: asp.net.netweb-serviceswcfiis

解决方案


推荐阅读