0

In our web application we are trying to use Google Recaptcha v2. The application is ASP.NET application using v4.6.2 When the page is loaded we are able to see the Google Recaptcha v2 loaded, but when we complete the challenge and submit the page the we are seeing error saying -

"WebException: The request was aborted: Could not create SSL/TLS secure channel"

.

Sample code -

System.Net.ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
var client = new System.Net.WebClient();
var GoogleReply = client.DownloadString(string.Format("https://www.google.com/recaptcha/api/siteverify?secret={0}&response={1}", PrivateKey, EncodedResponse)); 

Any guidance / pointers is very much appreciated.

  • 1
    Did you check this? https://stackoverflow.com/questions/2859790/the-request-was-aborted-could-not-create-ssl-tls-secure-channel – Aniket Bhansali Jun 10 '20 at 04:34

0 Answers0