The request was aborted: Could not create SSL/TLS secure channel
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The request was aborted: Could not create SSL/TLS secure channel
FOR TWO DAYS NOW AV BEEN GETTING THIS ERROR
The request was aborted: Could not create SSL/TLS secure channel
when i use another host http status code is okay
But sandbox api keeps throwing me this error
eg https://nwsc.co.ug posting to this url gives me http code 200
i generated p12 certificate file from the my self signing csr and private Key
but still cant connect to the api
What could be missing
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: The request was aborted: Could not create SSL/TLS secure channel
hey,
the mistake is familiar and there are many motives why the SSL/TLS negotiation might also fail. The maximum commonplace is an invalid or expired server certificates, and also you took care of that by way of providing your very own server certificates validation hook, however isn't always necessarily the best reason. The server may additionally require mutual authentication, it can be configured with a suites of ciphers not supported through your purchaser, it may have a time go with the flow too large for the handshake to be triumphant and many extra reasons.
The excellent answer is to use the SChannel troubleshooting equipment set. SChannel is the SSPI provider chargeable for SSL and TLS and your patron will use it for the handshake. take a look at TLS/SSL equipment and Settings.
also do see this
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: The request was aborted: Could not create SSL/TLS secure channel
Hi @ezamarichard,
Please try the following steps to resolve the SSL issue:
- Use SOAPUI to test connectivity credentials and test ‘HelloWorld’ Example provided in the getting started guide. https://developer.visa.com/vdpguide#get-started-overview
- If SOAPUI works – compare the request coming out of your app with the request coming out of SOAPUI.
- Create a new .p12 using the command line below.
- Command line: openssl pkcs12 -export -out p12certfile.p12 -inkey example-key.pem -in cert.pem
- After that, try to call the helloworld method and see if you get a successful response.
After trying those steps, if you see that SOAPUI does not work – provide the SOAPUI screenshots, raw request message, and the error messages.
Thanks,
Diana
Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: The request was aborted: Could not create SSL/TLS secure channel
Here was my solution
1 i imported the p12 file to personal key store
2 exported it into a .der file
3 reimported it to the trusted security key store
This is How my pc started trusting the self signed certificate
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: The request was aborted: Could not create SSL/TLS secure channel
Hi @ezamarichard,
That's excellent and you're doing a really good job! Thanks for sharing how you resolved the problem.