Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Curl error 51: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_EXPIRED

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

  1. Charles_Beauchemin

    Charles_Beauchemin

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    404
    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.
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    6,701
    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".
     
    Baschti-aus-s likes this.
  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?
     
  4. S4UC1SS0N

    S4UC1SS0N

    Joined:
    May 29, 2014
    Posts:
    41
    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.
     
    ratking likes this.
  5. Charles_Beauchemin

    Charles_Beauchemin

    Unity Technologies

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

    Baschti-aus-s

    Joined:
    Jan 6, 2020
    Posts:
    5
    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.
     
  7. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    245
    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
     
  8. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,026
    Same -- triggers when I try to do web requests.
     
    Last edited: Jun 3, 2020 at 8:38 PM
  9. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,026
    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 at 10:57 PM
  10. kwangee

    kwangee

    Joined:
    Thursday
    Posts:
    1
unityunity