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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity 2017 cannot use https

Discussion in 'Multiplayer' started by CChilde, Nov 27, 2019.

  1. CChilde

    CChilde

    Joined:
    Nov 21, 2019
    Posts:
    2
    as the title. I use unity2017 to access https through HttpsWebRequest, and unity throws the following exception:

    HttpPostReturn Error: Error: SecureChannelFailure (The authentication or decryption has failed.)
    at System.Net.HttpWebRequest.EndGetRequestStream (System.IAsyncResult asyncResult) [0x0003a] in <a3bc56cd038446b2ba8027b187001bf8>:0
    at System.Net.HttpWebRequest.GetRequestStream () [0x0004e] in <a3bc56cd038446b2ba8027b187001bf8>:0
    at WebHttp.HttpPostReturn (System.String url, System.String param, System.Boolean isJson) [0x00066] in F:\UnityWorkspace\TestOpenssl\Assets\Scripts\WebHttp.cs:100
    UnityEngine.Debug:Log(Object)

    I know unity2018.1 has fixed this problem and can connect normally, but my project uses 2017. so, Can someone tell me which version of the 2017 patch fixes this problem. tks
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Why not just check if the issue is fixed in the latest 2017.4 LTS? It is either that or read the release notes to find it, and there's been 35 releases of just 2017.4.x, so have fun with that.
     
  3. CChilde

    CChilde

    Joined:
    Nov 21, 2019
    Posts:
    2
    thank you for your reply. I found more information and found that the previous version of unity2018 was not implemented, but I solved this problem through a third-party plugin.
    https://github.com/proyecto26/RestClient