Page 1 of 1
The request was aborted: Could not create SSL/TLS secure channel
Posted: Tue Feb 04, 2020 11:13 am
by ribasman
Hi,
Getting into this certificate error message and i believe it has to be with your server.
What can i do to solve this, please.
Best regards
Nuno Ribeiro
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Tue Feb 04, 2020 11:43 am
by oss
which url please?
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Tue Feb 04, 2020 7:15 pm
by ribasman
Just an example
https://rest.opensubtitles.org/search/m ... uageid-por
But your question striked me that might the secure layer protocol in the http(s) be the culprit and it was, but still a rather strange since yours examples uses the https protocol
So for the moment I can search subtitles like
http://rest.opensubtitles.org/search/mo ... uageid-por
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Wed Feb 05, 2020 10:43 am
by oss
Hi
it is working now (and before too, it was not working like 3 hours). Anyway, thanks for pointing out
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Sat Feb 08, 2020 9:20 am
by ribasman
Problem pointed out still remains. Can't use 'https' in my request.
Luckly http works.
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Sat Feb 08, 2020 11:11 am
by oss
please send us CURL example how it is not working. It is working here.
Also make sure you are not playing with NS (hosts) file
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Sun Feb 09, 2020 12:59 am
by ribasman
Not using Curl. Never did.
Always use HttpWebRequest in .Net
Here's some code:
Dim postString As String = "
https://rest.opensubtitles.org/search..."
Dim postReq As HttpWebRequest = DirectCast(WebRequest.Create(postString), HttpWebRequest)
With postReq
.Method = "POST"
.KeepAlive = True
.ContentType = "text/xml"
.UserAgent = "***********"
End With
Dim postreqstream As Stream = postReq.GetRequestStream()
where things get wrong when server replies "The request was aborted: Could not create SSL/TLS secure channel"
What can i say. Always worked pretty good for me.
Re: The request was aborted: Could not create SSL/TLS secure channel
Posted: Mon Feb 10, 2020 12:36 pm
by oss
did you changed your hosts file ? (do you know to which IP address you are connecting to? If yes, write us)
I know what is the problem, but want to understand more and the best way is to emulate it with CURL.