title: certificate for this server is invalid
body: <p>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 <strong>error</strong>:</p>
  
  <blockquote>
    <p>The certificate for this server is invalid. You might be connecting to
    a server that is pretending to be "DOMAIN NAME" which could put your
    confidential information at risk.</p>
  </blockquote>
  
  <p>I am using Swift3. <strong>I want to know Is this front-end issue or server-end? How can I resolve this?</strong></p>
  
  <p><strong>Note:</strong> I have searched a lot about the issue, but didn't get the solution. I also tried <a href="https://stackoverflow.com/questions/32983099/titanium-the-certificate-for-this-server-is-invalid-you-might-be-connecting">Titanium - &quot;The certificate for this server is invalid. You might be connecting to a server that is pretending to be DOMAIN.COM”</a> but I was already follow all the steps.</p>
  
  <p>Other thing is web-app and Android-app is working Ok. But iOS app giving error.</p>