Skip to content

Establish trust relationship for the SSL/TLS secure channel

Compare
Choose a tag to compare
@geral2 geral2 released this 17 Aug 20:44
· 19 commits to master since this release

Fix bugs:
#15 - Could not create SSL/TLS secure channel.
#16 - Object reference not set to an instance of an object

I fixed this error by adding this line before calling the web method:

System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) => { return true; };