Windows 8.1 TLS 1.2 support within Xamarin

Hi,

We use Xamarin to target IOS, Android and Windows 8.1 devices. We have recently had the need to allow the use of TLS 1.2 for all 3 of these platforms. IOS does this out of the box. For Android we are using ModernHTTPClient to achieve this. But for Windows 8.1 there doesn't currently seem to be any way of supporting TLS 1.2.

We have tried the following approaches without success:
- Making use of the ServicePointManager to define the TLS versions available - SPM is not supported in PCL or Windows target projects
- Upgrade to .NET 4.6 - Xamarin does not allow this and reverts the version back to 4.5 each time
- Upgrade to Visual Studio 2017 with .NET Core 2.0 - VS2017 does not support Windows 8.1 App/Phone projects.

Does anyone know if there is any way of achieving this within 8.1 as there currently doesn't seem to be any way of doing it?

Thanks in advance

Regards

Scott

Posts

  • scottj15scottj15 GBMember

    Bump

  • scottj15scottj15 GBMember

    Is there anyone at Xamarin who is able to advise on this please? There currently seems to be no way of supporting Xamarin Windows 8.1 with TLS 1.2?

    Thanks,

    Scott

  • Any news about this topic ?

  • scottj15scottj15 GBMember

    Hi mohamedbenamor,

    Yes we were able to resolve this by using Windows.Web.Http instead of System.Web.Http within the Windows target project. Windows.Web.Http allows the use of TLS 1.2.

    Hope this helps.

    Scott

Sign In or Register to comment.