Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

Discussion in 'GameTune' started by Egil-Sandfeld, Dec 2, 2019.

Thread Status:
Not open for further replies.
  1. Egil-Sandfeld

    Egil-Sandfeld

    Joined:
    Oct 8, 2012
    Posts:
    72
    About 25% of the times when starting a unity build on Android with Gametune to initialize, the following error appears:

    "Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED"

    App built with Unity 2019.2.12f1
    Android 10 (rooted)

    What can I do about this?

    0001/01/01 00:00:00.000 -1 -1 Info : --------- beginning of main
    2019/12/02 09:04:44.536 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 4 lines
    2019/12/02 09:04:44.607 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 41 lines
    2019/12/02 09:04:44.981 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 37 lines
    2019/12/02 09:04:45.833 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 10 lines
    2019/12/02 09:04:48.657 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 167 lines
    2019/12/02 09:04:52.560 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 354 lines
    2019/12/02 09:04:53.527 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain expire 2562 lines
    2019/12/02 09:04:53.712 7695 7748 Debug Unity: ! Builder Builder.withAnswerListener(IUnityGameTuneAnswerListener);
    2019/12/02 09:04:53.713 7695 7748 Debug Unity: ReflectionHelper.Proxy(99,[interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:53.714 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain identical 1 line
    2019/12/02 09:04:53.747 7695 7748 Info chatty: uid=10356(appBundleIDHere) UnityMain identical 1 line
    2019/12/02 09:04:53.748 7695 7748 Debug Unity: ! Builder Builder.withAnswerListener(IUnityGameTuneAnswerListener);
    2019/12/02 09:04:53.748 7695 7748 Debug Unity: ReflectionHelper.Proxy(107,[interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:53.752 7695 7748 Debug Unity: ? getMethodID("com.unity3d.gametune.UnityGameTune", "askQuestions", "(L[Lcom.unity3d.gametune.Question;;)V", static)
    2019/12/02 09:04:53.753 7695 7748 Debug Unity: ! void UnityGameTune.askQuestions(Question[]);
    2019/12/02 09:04:53.753 7695 7748 Info UnityGameTune: com.unity3d.gametune.UnityGameTune.askQuestions() (line:182) :: Stacking questions for later use
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityIAP Version: 1.23.1
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityEngine.Logger:Log(Object)
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityEngine.Purchasing.StandardPurchasingModule:Instance(AppStore)
    2019/12/02 09:04:54.746 7695 7748 Info Unity: UnityEngine.Purchasing.StandardPurchasingModule:Instance()
    2019/12/02 09:04:54.746 7695 7748 Info Unity: SubscriptionSystem:InitializePurchasing() (at E:\Development\AWE\Ro\Ro\Assets\_Project\Scripts\IAP\SubscriptionSystem.cs:982)
    2019/12/02 09:04:54.746 7695 7748 Info Unity: SubscriptionSystem:Awake() (at E:\Development\AWE\Ro\Ro\Assets\_Project\Scripts\IAP\SubscriptionSystem.cs:173)
    2019/12/02 09:04:54.746 7695 7748 Info Unity:
    2019/12/02 09:04:54.746 7695 7748 Info Unity: (Filename: E Line: 0)
    2019/12/02 09:04:54.746 7695 7748 Info Unity:
    2019/12/02 09:04:54.815 7695 7748 Debug Unity: > FindClass(com/unity/purchasing/common/IUnityCallback)
    2019/12/02 09:04:54.816 7695 7748 Debug Unity: ? getMethodID("com.unity.purchasing.googleplay.GooglePlayPurchasing", "instance", "(Lcom.unity.purchasing.common.IUnityCallback;)Ljava/lang/Object;", static)
    2019/12/02 09:04:54.817 7695 7748 Debug Unity: ! GooglePlayPurchasing GooglePlayPurchasing.instance(IUnityCallback);
    2019/12/02 09:04:54.817 7695 7748 Debug Unity: ReflectionHelper.Proxy(115,[interface com.unity.purchasing.common.IUnityCallback])
    2019/12/02 09:04:55.006 7695 7766 Error Unity: Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED
    2019/12/02 09:04:55.006 7695 7766 Error Unity:
    2019/12/02 09:04:55.006 7695 7766 Error Unity:
    2019/12/02 09:04:55.006 7695 7766 Error Unity: (Filename: ./Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 734)
    2019/12/02 09:04:55.006 7695 7766 Error Unity:
    2019/12/02 09:04:55.974 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(67, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@2bea914])
    2019/12/02 09:04:56.009 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(75, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@c6d77b2])
    2019/12/02 09:04:56.013 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(83, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@ac06303])
    2019/12/02 09:04:56.016 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(91, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@9674280])
    2019/12/02 09:04:56.019 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(99, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@63a80b9])
    2019/12/02 09:04:56.022 7695 7904 Debug Unity: ReflectionHelper.Proxy.invoke(107, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener], onAnswerReceived, [com.unity3d.gametune.Answer@2375cfe])
    2019/12/02 09:04:56.099 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(67, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:56.100 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(75, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:56.100 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(83, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:56.101 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(91, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:56.102 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(99, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
    2019/12/02 09:04:56.102 7695 7711 Debug Unity: ReflectionHelper.Proxy.finilize(107, [interface com.unity3d.gametune.IUnityGameTuneAnswerListener])
     
  2. kosmikko

    kosmikko

    Unity Technologies

    Joined:
    Jan 30, 2018
    Posts:
    7
    Hi, I've not seen this error before. Does it happen only on the rooted device? What's the device? Are you sure it's related to GameTune and not the IAP/purchase parts?
     
    jjrice2233 likes this.
  3. Classic-Niall

    Classic-Niall

    Joined:
    Apr 16, 2013
    Posts:
    3
    I've just got this error now.
    I opened up Hub, and I wasn't logged in.

    When I logged in, my projects loaded as normal.
    But this error shows whenever I play test my project.
     
  4. cppjames

    cppjames

    Joined:
    Jul 25, 2018
    Posts:
    2
    A similar error keeps constantly showing up in my projects:
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_UNKNOWN_ERROR
    What does it mean? Can it be fixed?
     
    jjrice2233 likes this.
  5. KechidBYA

    KechidBYA

    Joined:
    Dec 16, 2019
    Posts:
    1
    I got the same error when building with unity 2018.4.14f1. Result no .exe file obtained!
     
    jjrice2233 likes this.
  6. Anagr

    Anagr

    Joined:
    Oct 1, 2016
    Posts:
    22
    The same kind of error, but in Editor. Unity 2019.2.17f. and a little bit different message

    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_UNKNOWN_ERROR
     
    jjrice2233 likes this.
  7. Raveler

    Raveler

    Joined:
    Sep 24, 2012
    Posts:
    40
    I have this problem in the editor as well. I verified the SSL certificate I am trying to connect to, and everything is fine on that end. So it must be an issue with the editor? My colleague does not have the problem with the same version of Unity (2019.2.15f1) on the same platform (Windows) with the same project.
     
    jjrice2233, goldcloud144 and CSuman like this.
  8. avickrs

    avickrs

    Joined:
    Apr 13, 2015
    Posts:
    2
    Also seeing this issue on 2019.2.14
    I'm not doing anything with android, just building for Windows. Game actually builds and runs fine but trying to run play mode in editor immediately crashes the editor

    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH

    EDIT:
    Verified, same issue on 2019.2.17
    Same issue happens when loading up a completely blank new Unity project
    Downgraded blank project to 2019.2.8 and doesn't present itself
     
    Last edited: Jan 18, 2020
    jjrice2233 and Egil-Sandfeld like this.
  9. SentreStage

    SentreStage

    Joined:
    Aug 8, 2011
    Posts:
    25
    Unity 2019.3.0f5: UNITYTLS_X509VERIFY_FLAG_EXPIRED when attempting to make a GET request via UnityWebRequest (Not using GameTune, this is a Unity bug)
     
  10. CreativeAVR

    CreativeAVR

    Joined:
    Sep 22, 2019
    Posts:
    1
    Hey, we've just got the same error, when we were making GET request. It appeared that URL we were accessing had expired SSL certificate. we changed https to http and all worked. However, using http might be insecure for your case.
    I hope that helps.
     
    NASA-3 and jjrice2233 like this.
  11. feelfeel

    feelfeel

    Joined:
    Apr 17, 2017
    Posts:
    2
    Hi,
    I get same error.
    Request to https server, method is POST.
     
    jjrice2233 likes this.
  12. feelfeel

    feelfeel

    Joined:
    Apr 17, 2017
    Posts:
    2
    Hey you guys!
    I got a solution. check out UWR(UnityWebRequest) certificateHandler and assign new CertificateHandler instance .

    CertificateHandler class has virtual method ValidateCertificate()
    Create new class (what you want) and inherit CertificateHandler class. ValidateCertificate method implement override that should be return value is true.
    CertificateHandler objecct assign to UnityWebRequest.cerificateHander.
    It will be works fine.

    reference link:
    https://answers.unity.com/questions/1479862/unitywebrequest-tomcat-redirect-and-self-signed-ss.html
     
    ilmario, jjrice2233 and Novack like this.
  13. avickrs

    avickrs

    Joined:
    Apr 13, 2015
    Posts:
    2
    We've done some testing and found that this issue is resolved in 2019.3.1. Our issue is related to the DNS resolver on our PFSense router. The issue is consistent across all operating systems from 2019.2.9 through 2019.3.0
     
  14. seec1

    seec1

    Joined:
    Jun 6, 2016
    Posts:
    11
    in my case, that error will show out when i change the timer of my device to future.
     
    Last edited: Mar 9, 2020
    jjrice2233 likes this.
  15. Nobuu-Nakata

    Nobuu-Nakata

    Joined:
    Jul 12, 2012
    Posts:
    3
    Every time I started connecting to free Wi-Fi at Starbucks, this error shows.
     
    thom824, Melanzue and jjrice2233 like this.
  16. AnswerFinder

    AnswerFinder

    Joined:
    May 2, 2015
    Posts:
    7
    The same error in Mac OS Catalina when I fixed the issue with Network Link Conditioner (I had an old version of this tool installed). After these steps and the successful launch of the updated version of Network Link Conditioner (for Xcode 11.4) and the on/off option "Very Bad Network" I found three UNITYTLS_X509VERIFY_FLAG_EXPIRED errors each time when I start the Unity editor.

    ---
    Unity 2018.4.21f1
     
    jjrice2233, Cypras, BalDan and 3 others like this.
  17. shaunnortonAU

    shaunnortonAU

    Joined:
    Jan 19, 2018
    Posts:
    9
    I started getting this error about 20 minutes ago.
     
  18. DanielP_

    DanielP_

    Joined:
    Jun 4, 2019
    Posts:
    16
    I have the same error, this morning was working fine.
     
  19. ratis13

    ratis13

    Joined:
    Oct 9, 2017
    Posts:
    1
    Same error started 20 minutes ago
     
    jjrice2233, aad-acc and ErkanAkin like this.
  20. HelloCuriosity

    HelloCuriosity

    Joined:
    Sep 23, 2019
    Posts:
    2
    I started getting this error about 30 minutes ago, I do not have any networking in my application at all...

    ---
    Unity 2019.2.17f1
     
    jjrice2233, callen and aad-acc like this.
  21. Fendtastic

    Fendtastic

    Joined:
    Aug 10, 2018
    Posts:
    9
    same here
     
    jjrice2233 likes this.
  22. chiiisa

    chiiisa

    Joined:
    Nov 16, 2019
    Posts:
    1
    I have the same error ...
     
    jjrice2233 likes this.
  23. Ford23

    Ford23

    Joined:
    Feb 22, 2020
    Posts:
    1
    Hello guys,
    I have this error too(Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED), did anyone find the fix for it? I'm using Unity 2018.4.17f1.. It came out of nowhere
     
    jjrice2233 likes this.
  24. toxmixgd

    toxmixgd

    Joined:
    Apr 11, 2020
    Posts:
    1
    then?
     
    jjrice2233 likes this.
  25. mopthrow

    mopthrow

    Joined:
    May 8, 2020
    Posts:
    348
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

    From Unity 2019.2.1f1

    30 minutes ago. Is there a way to file a proper report?

    Also, hi!
     
    jjrice2233 likes this.
  26. magician_creator

    magician_creator

    Joined:
    Jun 25, 2019
    Posts:
    14
    I have just got the error
    Please tell me it is going to be fixed.
     
    jjrice2233 likes this.
  27. Fendtastic

    Fendtastic

    Joined:
    Aug 10, 2018
    Posts:
    9
    everyone here has the same error. Hope Unity can fix this.
     
    jjrice2233 likes this.
  28. Prantare

    Prantare

    Joined:
    Oct 15, 2017
    Posts:
    2
    Same!
     
    jjrice2233 likes this.
  29. openroomxyz

    openroomxyz

    Joined:
    May 3, 2020
    Posts:
    8
    Same error
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED
     
    jjrice2233 and KVos_PolyLabs like this.
  30. Elestin

    Elestin

    Joined:
    Apr 8, 2015
    Posts:
    10
    I started getting this error like everyone else. I restarted my computer before seeing this. Obviously unity related problem.
     
    jjrice2233 and KVos_PolyLabs like this.
  31. aldorain_

    aldorain_

    Joined:
    Mar 21, 2020
    Posts:
    1
    Same error Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED came out of nowhere
     
    jjrice2233 and KVos_PolyLabs like this.
  32. Cmaujluk123

    Cmaujluk123

    Joined:
    Aug 27, 2015
    Posts:
    1
    The same error. One minute before I pushed into master, thought I'll be fired:eek:. Waiting for fix.
     
  33. rahulnaik9010

    rahulnaik9010

    Joined:
    Jan 2, 2019
    Posts:
    19
    Guys, a temporary solution if your unity project doesn't require internet features.
    Switch off your internet connection to your PC.

    Use your mobile for internet usage.
     
    Last edited: May 8, 2020
    jjrice2233 likes this.
  34. ro_oh

    ro_oh

    Joined:
    Jul 5, 2015
    Posts:
    3
    Same here.

    Everything was working fine until 30 minutes ago - now Unity crashes on pressing Play since this error appeared.

    Using version 2018.4.14f1
     
    jjrice2233 likes this.
  35. Deity-Chris

    Deity-Chris

    Joined:
    Mar 31, 2018
    Posts:
    1
    I'm guessing one of Unity's own SSL certificates may have expired?

    *Edit - I'm getting the same issue on version 2018.4.19f1
     
    jjrice2233 likes this.
  36. YOSONLINEAPP

    YOSONLINEAPP

    Joined:
    Nov 28, 2019
    Posts:
    1
    I have the same issue.
     
    jjrice2233 likes this.
  37. S4UC1SS0N

    S4UC1SS0N

    Joined:
    May 29, 2014
    Posts:
    49
    I guess unity is doing curl requests to something with a very recenltly expired certificate...
    But why would unity need to curl anything ?
     
    jjrice2233 likes this.
  38. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,697
    Yup. WHY??
    Good to see it seem to be everyone tho... likely to be fixed soon. Right Unity???
     
    jjrice2233 likes this.
  39. Zawisz

    Zawisz

    Joined:
    Sep 29, 2018
    Posts:
    1
    Same
    Everything were working fine 30min ago and then suddenly I got this error. Idk what's going on
     
    jjrice2233 likes this.
  40. DRaGuNia

    DRaGuNia

    Joined:
    Oct 27, 2017
    Posts:
    1
    Same here, hopefully it'll be fixed soon.
     
    jjrice2233 likes this.
  41. eliteforcevn

    eliteforcevn

    Joined:
    Oct 25, 2018
    Posts:
    47
    the same
     
    jjrice2233 likes this.
  42. jacobselg

    jacobselg

    Joined:
    Jul 22, 2017
    Posts:
    3
    Same issue just now, can't make builds either...
     
    jjrice2233 likes this.
  43. voxelholic

    voxelholic

    Joined:
    Feb 2, 2016
    Posts:
    6
    I received the same error this morning for the first time. All I did is open my project. I'm guessing the Editor or package manager is querying for updated versions? It throws the same error at fast intervals at first (every second), then slows down to every minute, then every 5 minutes.

    (see attached)

    Editor and project worked fine last night. This morning I can't even hit play without it crashing. Maybe a certificate expired on their end.

    Found this in the logs:

    Code (CSharp):
    1. Subscribe to USB device events
    2. EditorUpdateCheck: Response {"latestversionstring":"2018.4.22f1 (3362ffbb7aa1)","latestversion":99999,"latestversionmessage":"A new LTS version of Unity is available. Please update to the latest released version at your convenience. Release notes available on the download site.","updateurl":"https://unity3d.com/unity/qa/lts-releases","updateinterval":3600} updateurl = https://unity3d.com/unity/qa/lts-releases interval = 3600
    3. Hub Web Socket connection default:(null):reason:29
    4. Hub Web Socket HTTP protocol init
    5. Refreshing native plugins compatible for Editor in 17.51 ms, found 2 plugins.
    6. Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED
    7.  
    8. (Filename: /Users/builduser/buildslave/unity/build/Modules/UnityWebRequest/Implementations/TransportCurl.cpp Line: 757)
     

    Attached Files:

    Last edited: May 8, 2020
    jjrice2233 likes this.
  44. sharonbalon

    sharonbalon

    Joined:
    May 8, 2020
    Posts:
    1
    Same here
    10 minutes ago Unity crashes after pressing Play and then this error appeared
     
    jjrice2233 likes this.
  45. Tiazol

    Tiazol

    Joined:
    Jan 14, 2020
    Posts:
    1
    The same.
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED
     
    jjrice2233 likes this.
  46. eliteforcevn

    eliteforcevn

    Joined:
    Oct 25, 2018
    Posts:
    47
    are we tracking ???
     
    jjrice2233 likes this.
  47. irojdest

    irojdest

    Joined:
    Oct 16, 2019
    Posts:
    1
    +1
     
    jjrice2233 likes this.
  48. Nightrunner1

    Nightrunner1

    Joined:
    Dec 10, 2018
    Posts:
    2
    much reports in last moments about this -> Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED <-
    i got the same since a half hour.. someone know how to fix this?
     
    jjrice2233 likes this.
  49. ro_oh

    ro_oh

    Joined:
    Jul 5, 2015
    Posts:
    3
    I recommend everybody to report the issue throught the bug report form in the editor:

    https://unity3d.com/unity/qa/bug-reporting

    It should be a super quick fix for Unity, the more reports flood in, the earlier they will take note.
     
    jjrice2233 likes this.
  50. InformaticaIQx

    InformaticaIQx

    Joined:
    Jan 7, 2020
    Posts:
    6
    the same error here too
     
    jjrice2233 likes this.
Thread Status:
Not open for further replies.