2

For my Android Application I'm using SSL to communicate with the server of a service providing an REST API.

Sometimes my calls throw an SSL Exception because the CertPathValidator cannot validate the certificate chain.

I get this message:

java.security.cert.CertPathValidatorException: IssuerName(CN=GeoTrust Global CA, O=GeoTrust Inc., C=US) does not match SubjectName(CN=RapidSSL CA, O="GeoTrust, Inc.", C=US) of signing certificate

Am I right, that this happens, because "GeoTrust Inc." does not match "GeoTrust, Inc." because the last one has a colon in the name and the first one does not contain it? Shouldn't I get always the same certificate by the server?

How can this validation exception be only thrown sometimes, but not always?

Matthias B
  • 5,523
  • 3
  • 45
  • 47
  • Did you find a solution for this problem? I still encouter it in 2012... – BurninLeo Jun 16 '12 at 05:55
  • PS: There is a possible solution at http://stackoverflow.com/questions/4115101/apache-httpclient-on-android-producing-certpathvalidatorexception-issuername – BurninLeo Jun 16 '12 at 13:23
  • @BurninLeo I'll just do not support plattforms below 2.3.3, I think. On 2.3.3 above it's working fine. – Matthias B Jun 20 '12 at 06:44

0 Answers0