我在尝试让我的WCF客户端和服务器彼此通话时出现此错误。WCF错误:“X.509证书CN = localhost链式构建失败...”
The X.509 certificate CN=localhost chain building failed. The certificate that was used has a trust chain that cannot be verified. Replace the certificate or change the certificateValidationMode. A certificate chain processed, but terminated in a root certificate which is not trusted by the trust.
如果关闭SSL证书,一切正常。
太棒了,它现在完美。你说得对,我正在使用自签名证书。修复此错误的另一关键技巧是使用Microsoft Service Configuration Editor在app.config中将“NegotiateServiceCredential”切换为“false”。 – Contango 2010-11-23 16:18:37
请原谅我的无知 - 这条线应该放在客户端还是服务器端?并在哪个部分的app.config? – 2010-12-27 12:38:36
@Shaul节是serviceBehaviors/behavior/serviceCredentials/clientCertificate您应该将此添加到服务器的app.config – 2010-12-27 14:37:26