title: SSLHandshakeException api.facebook.com
body: <p>Trying to write my first Android native app with Facebook login.</p>
  
  <p>I am getting a SSLHandshakeException and I have not idea how to troubleshoot it.</p>
  
  <p>My main activity inherits from FacebookActivity and does openSession() I get the Facebook loging but I cannot login (thats when I get the exception)</p>
  
  <p>The "Key Hashes" in the Facebook app are the ones I got from my signed app's keystore.</p>
  
  <pre><code>public class MainActivity extends FacebookActivity {
  
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    this.openSession();
    setContentView(R.layout.activity_main);
  
  }
  </code></pre>
  
  <p>Stack trace: </p>
  
  <pre><code>12-02 21:37:29.711: E/HttpOperation.run(2088): class javax.net.ssl.SSLHandshakeException org.bouncycastle.jce.exception.ExtCertPathValidatorException: IssuerName(OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US) does not match SubjectName(OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, OU=VeriSign International Server CA - Class 3, OU="VeriSign, Inc.", O=VeriSign Trust Network) of signing certificate. [https://api.facebook.com/restserver.php?api_key=882a8490361da98xxxxxxxxxxx1ddc14d&amp;email=nicoxxxx.xxxxxxxx%40gmail.com&amp;format=JSON&amp;method=auth.login&amp;migrations_override=%7B%27empty_json%27%3A+true%7D&amp;password=M*****4&amp;sig=76b8a7f5xxxxxxxx052875b7b831f&amp;v=1.0]
  12-02 21:37:29.711: E/HttpOperation(2088): Encountered exception: javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: IssuerName(OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US) does not match SubjectName(OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, OU=VeriSign International Server CA - Class 3, OU="VeriSign, Inc.", O=VeriSign Trust Network) of signing certificate.
  12-02 21:37:29.711: W/System.err(2088): javax.net.ssl.SSLHandshakeException: org.bouncycastle.jce.exception.ExtCertPathValidatorException: IssuerName(OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US) does not match SubjectName(OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, OU=VeriSign International Server CA - Class 3, OU="VeriSign, Inc.", O=VeriSign Trust Network) of signing certificate.
  12-02 21:37:29.711: W/System.err(2088):     at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:477)
  </code></pre>