title: How can I add a SSL certificate on my apk?
body: <p>I am trying to make a connection to an <code>https</code> url.</p>
  
  <p>The problem that I am facing is that when I am trying to connect via <code>WebView</code> I am getting the following error:</p>
  
  <blockquote>
    <p>Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.</p>
  </blockquote>
  
  <p>I have searched a lot but most of the responses about this error is to ignore the error and let the url goes without problems.</p>
  
  <p>It seems that if I add the certificate on my Android phone it works well but it does have any sense that I would have to add the certificate of SSL in each device I want to install de app (because they will be third party clients). </p>
  
  <p>Because of this, I have thought about add the certificate into the apk so the users of the application will not have errors with that certificate and they will be able to connect to that <code>https</code> url.</p>
  
  <p>Is it possible to add SSL certificate on the apk?</p>
  
  <p>Thanks in advance!</p>