certificate for this server is invalid

前端 未结 4 1041
心在旅途
心在旅途 2020-12-06 18:30

My app is live. It was working fine. But somedays before we changed the certificates(for security purpose) on Server. And Now whenever I tried to run my app. It is giving

相关标签:
4条回答
  • 2020-12-06 18:41

    You can check to see if this is a server-side problem by testing the TLS endpoint using SSL Labs (assuming this is an HTTPS connection). If the results come back invalid, the site will tell you why. If you're using a self-signed certificate, that would certainly cause this error.

    If the results come back as valid from SSL Labs, then it's probably on the client side. Some client software doesn't have built-in trusted root certificates, but I doubt that Swift doesn't use the default OS root certificate store.

    0 讨论(0)
  • 2020-12-06 18:41

    Remove https://www from ServerTrustPolicy and put just url

    0 讨论(0)
  • 2020-12-06 18:44

    Please also check your firewall restrictions. In my case, this error occurred due to my firewall blocked the required URL. it's worked fine after removing firewall restrictions

    0 讨论(0)
  • 2020-12-06 18:56

    Solved same issue with just setting devices' date & time to automatic.

    0 讨论(0)
提交回复
热议问题