Search Unity

Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

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

  1. Egil-Sandfeld

    Egil-Sandfeld

    Joined:
    Oct 8, 2012
    Posts:
    55
    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:
    5
    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?
     
  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. cosminjames555

    cosminjames555

    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?
     
  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!
     
  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
     
  7. Raveler

    Raveler

    Joined:
    Sep 24, 2012
    Posts:
    37
    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.
     
  8. avickrs

    avickrs

    Joined:
    Apr 13, 2015
    Posts:
    1
    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
    Egil-Sandfeld likes 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.
     
unityunity