question

ubix avatar image
3 Likes"
ubix asked

Still seeing error after enabling TLS 1.2: Could not create SSL/TLS secure channel

I updated the eBay V 1131 C# SDK to .NET version 4.8and enabled TLS 1.3 and am still seeing this error. Our users are being impacted, how do we resolve this?

apisdksslv3tls1.2
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

jitendra_developersupport avatar image
0 Likes"
jitendra_developersupport answered

Hi @ubix,


Please use a higher target framework version in your C# project 4.7.2 or higher) to use TLS 1.2 (system default).


Best Regards,

eBay Developer Support


· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

HI,


I need your help. I have still not been able to get past this issue. Please help.

0 Likes 0 ·
broncos avatar image
1 Like"
broncos answered

On certain machine we are getting "Could not create SSL/TSS secure channel " but on other it works fine, what could be the issue


10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

squareacircle avatar image
1 Like"
squareacircle answered

Hi. I am also getting this error as of yesterday. I have followed above and have upgraded the .net framework to as above. Also have the azure web app service running at 1.2 TLS and still error. I'm using the .net SDK. any advice?

,

I am getting this error as of yesterday as yes. Have followed above and web app is running on .net frame work 4.7.2. Have also ensured that azure app service is running 1.2 TLS but still not working

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ubix avatar image
1 Like"
ubix answered

Might only be impacting the API for revising items. We have uploaded new items and removed sold items and that works, but the Revise API call fails.

We are now using TLS 1.3 under .NET 4.8 and are still seeing this.

· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

seems be a few thing for me, downloading orders and relisting
0 Likes 0 ·
broncos avatar image
2 Likes"
broncos answered

It does work on some machines. I am not sure what is going on? Any help would be appreciated

Thanks

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ubix avatar image
0 Likes"
ubix answered

We added TLS 1.2 to the setting under .NET 4.8 and that worked. So it turns out to be that you need both TLS 1.2 and .NET > 4.7 to make this work. The only failure we saw after that was on a Windows 7 machine that did not have the updates required to support TLS 1.2, and that is solvable by installing said updates.

· 1
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Can you elaborate on how you added TLS 1.2 under .NET 4.8? We have upgraded .NET version but nothing works.
0 Likes 0 ·
marferr4686 avatar image
0 Likes"
marferr4686 answered

Hi, I have the same problem.
My project is targeting framework 4.8 but I have "Could not create SSL/TSS secure channel" error

10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

warjo_3112 avatar image
0 Likes"
warjo_3112 answered

The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing c# socket connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:

ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
     SecurityProtocolType.Tls
     SecurityProtocolType.Tls11
     SecurityProtocolType.Ssl3;
 
//createing HttpWebRequest after ServicePointManager settings
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://google.com/api/")

If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.



10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.