Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

[QUESTION] UnityWebRequest and SSL protocol on Android

Discussion in 'Scripting' started by qiqiqi, Feb 22, 2019.

  1. qiqiqi

    qiqiqi

    Joined:
    Nov 3, 2015
    Posts:
    16
    Hi,

    question in short:
    Has UnityWebRequest (in Unity 5.6.4) done anything to raise SSL version(like TLSv1.0 -> TLSv1.1) behind the scene?

    details:
    I tried 2 ways to download a zip on Android, using Android's Download Manager and using Unity's UnityWebRequest,
    On many old android phones(Android 4.x), Android's Download Manager has SSL handshake error, but Unity's UnityWebRequest works well,
    I have figured out the problem, which is because my CDN server is configured with TLSv1.1, but Android 4.x phones is configured with TLSv1.0 by default,
    however I don't understand why UnityWebRequest still work in this case.

    Appreciate for any help!
     
    Last edited: Feb 22, 2019
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,638
    Yes, we do enable TLS 1.1 support. Android has support for it, but it is disabled by default until a certain Android release. We do enable it for UnityWebRequest.
     
    qiqiqi likes this.
  3. qiqiqi

    qiqiqi

    Joined:
    Nov 3, 2015
    Posts:
    16
    Thank you