title: Could not validate certificate signature?
body: <p>I use the SSL Socket and Trustmanager from this side <a href="http://blog.synyx.de/2010/06/android-and-self-signed-ssl-certificates/" rel="noreferrer">Self signed SSL</a></p>
  
  <p>but i keep getting following error:</p>
  
  <blockquote>
    <p>09-28 19:52:41.942: WARN/System.err(10101): javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: Could not validate certificate signature.</p>
  </blockquote>
  
  <p>What is wrong?
  I already checked different posts on stackoverflow but i can`t seem to get it to work.</p>
  
  <p>My code:</p>
  
  <pre><code>SchemeRegistry schemeRegistry = new SchemeRegistry();
  
  // http scheme
  
  schemeRegistry.register(new Scheme("http", PlainSocketFactory.getSocketFactory(), 80));
  
  // https scheme
  
  schemeRegistry.register(new Scheme("https", new EasySSLSocketFactory(), 443));
  params = new BasicHttpParams();
  params.setParameter(ConnManagerPNames.MAX_TOTAL_CONNECTIONS, 1);
  params.setParameter(ConnManagerPNames.MAX_CONNECTIONS_PER_ROUTE, new ConnPerRouteBean(1));
  params.setParameter(HttpProtocolParams.USE_EXPECT_CONTINUE, false);
  HttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);
  HttpProtocolParams.setContentCharset(params, "utf8");
  CredentialsProvider credentialsProvider = new BasicCredentialsProvider();
  credentialsProvider.setCredentials(new AuthScope("www.example.com", AuthScope.ANY_PORT),
      new UsernamePasswordCredentials("user", "password"));
  clientConnectionManager = new ThreadSafeClientConnManager(params, schemeRegistry);
  context = new BasicHttpContext();
  context.setAttribute("http.auth.credentials-provider", credentialsProvider);
  
  DefaultHttpClient client = new DefaultHttpClient(clientConnectionManager, params);
  
  HttpGet get = new HttpGet("https://www.example.com/web/restricted/form/formelement=512663");
  HttpResponse response = client.execute(get, context);
  
  Log.w("Response ","Status line : "+ response.toString());
  </code></pre>