Facebook ログインを使用して、最初の Android ネイティブ アプリを作成しようとしています。
SSLHandshakeException が発生しましたが、トラブルシューティングの方法がわかりません。
私のメイン アクティビティは FacebookActivity から継承され、openSession() を実行します
Facebook アプリの「キー ハッシュ」は、署名済みアプリのキーストアから取得したものです。
public class MainActivity extends FacebookActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.openSession();
setContentView(R.layout.activity_main);
}
スタックトレース:
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&email=nicoxxxx.xxxxxxxx%40gmail.com&format=JSON&method=auth.login&migrations_override=%7B%27empty_json%27%3A+true%7D&password=M*****4&sig=76b8a7f5xxxxxxxx052875b7b831f&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)