0

My App works with many Restservices with different Certificates. I open a HttpsURLConnection and that's working fine.

But now 3 Servicepoints have a private root CA, so I get an Trust anchor for certification path not found Error in my App.

How can I make the App automatically get the certificate from this servicepoint?

I don't want to create a Trustmanager that ignores SSL errors.

Baum mit Augen
  • 49,044
  • 25
  • 144
  • 182
Metti
  • 85
  • 1
  • 8
  • that is a selfsigned certificate? – firegloves Sep 20 '17 at 14:33
  • No its from a certification firm – Metti Sep 20 '17 at 14:38
  • ok, i think that is not a well known CA, right? – firegloves Sep 20 '17 at 14:40
  • Yes is a ca certification – Metti Sep 20 '17 at 14:42
  • Yeah but read here https://developer.android.com/training/articles/security-ssl.html#UnknownCa "In this case, the SSLHandshakeException occurs because you have a CA that isn't trusted by the system. It could be because you have a certificate from a new CA that isn't yet trusted by Android or your app is running on an older version without the CA. More often a CA is unknown because it isn't a public CA, but a private one" – firegloves Sep 20 '17 at 14:44
  • The Certiciat is from GlobalSign and they say its a global CA, and i dont have any private key – Metti Sep 20 '17 at 14:52
  • They say that Android trust their certs automatically? – firegloves Sep 20 '17 at 16:04
  • in android the globalsign is in the trustet cert list. The Cert is a clobal ca. And also Chrome / Firefay say the cert is ok and save, only the android https connection have a problem with that – Metti Sep 20 '17 at 16:12

0 Answers0