Posts Tagged ‘SSL’

WCF Services over HTTPS: Programmatically accept self-signed or invalid SSL certificates

When using WCF Services over HTTPS with a self-signed or invalid SSL certificates WCF could throw get an exception of type SecurityNegotiationException that says: Could not establish trust relationship for the SSL/TLS secure channel with authority […]. To instruct WCF to accept all certificates use the following code before consuming any services: ServicePointManager.ServerCertificateValidationCallback += (sender, […]

Read more…