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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    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. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    If you turn off the analytics, no data usage will be sent to our servers, for both the editor and the build.
    As for GDPR, Unity fully supports the regulation and you can see many Unity games shipping in Europe complying with this.
     
    jjrice2233 likes this.
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    9,638
    Yeah, the way to comply is to write a privacy policy that says "We don't gather data, but Unity probably does, we don't know".
     
  3. dmsg_sandy

    dmsg_sandy

    Joined:
    May 20, 2020
    Posts:
    1
    Hi all, my project got this error last Friday.
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH
    The found this issue inside our editor and in our android app but somehow our iOS app works fine.
    We have tried re-issue our SSL certification but it didn't work.

    Does anyone have any idea? @Unity is there a specific SSL certification that we need to use?
     
    jjrice2233 likes this.
  4. S4UC1SS0N

    S4UC1SS0N

    Joined:
    May 29, 2014
    Posts:
    49
    But you still collect data if we turn off analytics right ? Since a few people here mentioned having the certificate error wile the analytics turned off if i'm not mistaken.
     
    jjrice2233 and ratking like this.
  5. charlesb_rm

    charlesb_rm

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    485
    No but the editor still has to connect to some servers: license, package manager, etc.
     
    jjrice2233 likes this.
  6. Baschti-aus-s

    Baschti-aus-s

    Joined:
    Jan 6, 2020
    Posts:
    8
    Well I checked the whole thread again. The certificate error without using the analytics was a misunderstanding. He didn't use the analytics but he also didn't "turned them off" in the settings.


    @Charles_Beauchemin
    I guess analytics is not the only function inside Unity, which is trying to get a connection to somewhere: https://forum.unity.com/threads/completely-disabling-analytics-at-runtime.520827/ In this thread is also mentioned, that only Plus/Pro users can turn them off completely.
    Could you please provide some kind of manual, which describes in detail what steps have to be done, to stop a Unity build performing any outbound network connections and if there are any exceptions? All existing exceptions, like being a non Plus/Pro user, have to be listed, so that the developer has a chance to mention these points in the privacy policy. Otherwise, the build does not fully supports the regulation of GDPR.
     
    jjrice2233 likes this.
  7. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    326
    Any updates on this? I am suddenly getting this error and it was working the day before:

    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

    2018.4.13f1 is my verison. Happening in editor as well as OSX build
     
    jjrice2233 likes this.
  8. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,027
    Same -- triggers when I try to do web requests.
     
    Last edited: Jun 3, 2020
    jjrice2233 likes this.
  9. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,027
    Think my problem might be related to this:

    https://support.sectigo.com/article...ddTrust-External-CA-Root-Expiring-May-30-2020

    https://www.agwa.name/blog/post/fixing_the_addtrust_root_expiration

    Is the Unity Editor somehow using the legacy system? Doesn't seem to happen in builds, only in editor (macOS) v2018.4.13 and v2019.2.12. Is there a way I can fix it?

    edti: my fix was to self validate when running in editor

    Code (CSharp):
    1. www.certificateHandler = new AcceptAllCertificatesSignedWithASpecificKeyPublicKey();
    then setup the override method like here: https://docs.unity3d.com/ScriptReference/Networking.CertificateHandler.ValidateCertificate.html where you replace it with the key you need (can print out the key if you don't know it and use that)

    I'm not a security expert so I don't know what vulnerabilities this may have and I'm only doing this when running in editor because iOS doesn't seem to have this problem, so use at your own risk.
     
    Last edited: Jun 3, 2020
    jjrice2233 likes this.
  10. kwangee

    kwangee

    Joined:
    Jun 4, 2020
    Posts:
    1
    jjrice2233 likes this.
  11. firefly14

    firefly14

    Joined:
    Sep 2, 2019
    Posts:
    13
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_CN_MISMATCH - any idea if this is similar issue or I need to do something else
     
    jjrice2233 likes this.
  12. HEROTECH70

    HEROTECH70

    Joined:
    May 24, 2017
    Posts:
    74
    Error Unity Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH

    Is there a reason this gets triggered randomly in my app, generally fixes itself by restarting the app.
    It used to work fine until a couple of months ago, I use UnityWebRequest to download asset bundles.

    How am I even supposed to find out what is causing this? this is not easily reproducible so I won't even bother with submitting a bug report
     
    jjrice2233 likes this.
  13. pouttit

    pouttit

    Joined:
    Apr 11, 2018
    Posts:
    2
    Any updates about the error ?
     
    jjrice2233 likes this.
  14. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    jjrice2233 likes this.
  15. ZackSheppard

    ZackSheppard

    Joined:
    Nov 12, 2016
    Posts:
    6
    My project was working perfectly last week and suddenly I am encountering
    UNITYTLS_X509VERIFY_FLAG_EXPIRED in my logs and my asset bundles are failing to be downloaded from amazon S3

    What am I supposed to do about this?
     
    pixelR and jjrice2233 like this.
  16. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    jjrice2233 likes this.
  17. ACABerryGames

    ACABerryGames

    Joined:
    May 15, 2017
    Posts:
    1
  18. ElegantUniverse

    ElegantUniverse

    Joined:
    Sep 13, 2018
    Posts:
    76
    solved for me
    I encountered with this error because i was sending Post request to an url that has expired SSL certificate
    also sometimes this error is because of redirected url to expired SSL certificate.
    you have to provide valid SSL certificate from your hosting.
     
  19. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Wrong forum.
     
    jjrice2233 likes this.
  20. Pawuchock

    Pawuchock

    Joined:
    Nov 6, 2014
    Posts:
    17
    Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH
    Unity 2020.1.3f1 & 2020.1.0b4 Android happens after request to the server.
     
    jjrice2233 likes this.
Thread Status:
Not open for further replies.