Search Unity

WebRequest results in Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

Discussion in 'Editor & General Support' started by mrm83, Jun 1, 2020.

  1. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    Suddenly happening out of the blue:
    Unity 2018.4.13f1

    Happening in editor, osx build, works in android and ios build.

    WebRequests results in : Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

    This is preventing our game from functioning on OSX build. What is this error?
     
  2. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,732
    This error means the you are performing secure request to endpoint those security certificate has expired. The server certificate has to updated.
    UnityWebRequest.error should also give an error message about security.
     
  3. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    The end point's certificate's expiration is next year.

    As I've mentioned, it was working with IOS and ANDROID build and only failing with EDITOR and OSX builds.
    I've updated unity to .23f1 and it is fixed.

    And if it is end point's certificate issue, I don't think updating Unity would fix it.
     
  4. mitchmeyer1

    mitchmeyer1

    Joined:
    Sep 19, 2016
    Posts:
    32
    @mrm83 Did you solve this? I have the same issue
     
  5. Novack

    Novack

    Joined:
    Oct 28, 2009
    Posts:
    844
    Same here, though is very random, for every 10 or 15 request to the same server, 1 fails. During app initialization we do more than a dozen requests, so the android build is throwing this error on almost every launch.

    Working on Unity 2020.1.2f1