asp.net - 在 IIS 中从 http 移植到 https
问题描述
我在将我的网站从 http 移植到 https 时遇到问题,特别是在我调用任何 WS 时。这是我遵循的步骤:
- 在 IIS 中导入证书
- 将安全模式从“消息”更改为“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.
有什么问题 ?
会不会是连接缓存的问题?
我该如何预防?
解决方案
推荐阅读
- ios - 在 iOS 中使用带有静态屏幕的 MVVM 是否明智?
- c# - 无法在 C# 中创建测试完成对象
- c# - 派生的泛型类看不到父级的变量
- error-handling - 为什么 sh with errexit 不能与命令列表一起使用?
- go - delve 是否支持更改或某些变体的热交换?
- python - 如何使用 curses 和 Python 设置窗口背景颜色?
- mongodb - ServerSelectionTimeoutError:通过 pymongo 连接到 Atlas 时出现超时错误
- java - Mysql Get_Lock 和 Release_Lock 函数耗时较长
- php - 获取当前时间,将其设置为不更新的变量
- java - 如何使用放心验证带有特殊字符的响应正文?