Search Unity

Unable to complete SSL connection

Discussion in 'Editor & General Support' started by jwennergren, Nov 14, 2018.

  1. jwennergren

    jwennergren

    Joined:
    Sep 21, 2018
    Posts:
    6
    Hello!

    I just completed my game and the last step is to connect the game to a webserver.

    I want to make a webrequest to this endpoint: https://svampjakt.se/api/mushroom but im getting this error now:

    "Unable to complete SSL connection".

    I have tried to connect via ngrok https and it works.

    I have spent the last night googling for a solution but cant find any.

    All help is appreciated.

    // Joakim
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,735
    Is this in Editor or on some particular platform?
    Which Unity version (exactly)?
     
  3. jwennergren

    jwennergren

    Joined:
    Sep 21, 2018
    Posts:
    6
    Both in Editor and on ios/android.

    My Editor version is the latest: 2018.2.15f1
     
  4. jwennergren

    jwennergren

    Joined:
    Sep 21, 2018
    Posts:
    6
    Edit: i have tried to make request via postman also, and it didnt work until i disabled SSl cerificate verification.
     
  5. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,735
    Firefox can open it for me, but it tells it's TLS 1.2, check the release notes when we've added support for it. It is possible it was 2018.3 (I don't remember exactly).
     
  6. jwennergren

    jwennergren

    Joined:
    Sep 21, 2018
    Posts:
    6
    I tried to open it in firefox but i didn't work for me. Then i googled the error message sec_error_unknown_issuer"
    firefox gave me. Which led me to install the
    SSLCertificateChainFile on my server. And now it works!

    THanks for the help Aurimas-Cernius.

     
    unity_bKCq68fLApGWxg likes this.