{"action":"created","issue":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/1008","labels_url":"https://api.github.com/repos/loopj/android-async-http/issues/1008/labels{/name}","comments_url":"https://api.github.com/repos/loopj/android-async-http/issues/1008/comments","events_url":"https://api.github.com/repos/loopj/android-async-http/issues/1008/events","html_url":"https://github.com/loopj/android-async-http/issues/1008","id":113030177,"number":1008,"title":"Custom CA Sample not working","user":{"login":"rferbesa","id":4902851,"avatar_url":"https://avatars.githubusercontent.com/u/4902851?v=3","gravatar_id":"","url":"https://api.github.com/users/rferbesa","html_url":"https://github.com/rferbesa","followers_url":"https://api.github.com/users/rferbesa/followers","following_url":"https://api.github.com/users/rferbesa/following{/other_user}","gists_url":"https://api.github.com/users/rferbesa/gists{/gist_id}","starred_url":"https://api.github.com/users/rferbesa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rferbesa/subscriptions","organizations_url":"https://api.github.com/users/rferbesa/orgs","repos_url":"https://api.github.com/users/rferbesa/repos","events_url":"https://api.github.com/users/rferbesa/events{/privacy}","received_events_url":"https://api.github.com/users/rferbesa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/loopj/android-async-http/labels/low","name":"low","color":"009800"},{"url":"https://api.github.com/repos/loopj/android-async-http/labels/wontfix","name":"wontfix","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"fineswap","id":3791064,"avatar_url":"https://avatars.githubusercontent.com/u/3791064?v=3","gravatar_id":"","url":"https://api.github.com/users/fineswap","html_url":"https://github.com/fineswap","followers_url":"https://api.github.com/users/fineswap/followers","following_url":"https://api.github.com/users/fineswap/following{/other_user}","gists_url":"https://api.github.com/users/fineswap/gists{/gist_id}","starred_url":"https://api.github.com/users/fineswap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fineswap/subscriptions","organizations_url":"https://api.github.com/users/fineswap/orgs","repos_url":"https://api.github.com/users/fineswap/repos","events_url":"https://api.github.com/users/fineswap/events{/privacy}","received_events_url":"https://api.github.com/users/fineswap/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/loopj/android-async-http/milestones/10","html_url":"https://github.com/loopj/android-async-http/milestones/1.4.9.1","labels_url":"https://api.github.com/repos/loopj/android-async-http/milestones/10/labels","id":1315438,"number":10,"title":"1.4.9.1","description":null,"creator":{"login":"smarek","id":384824,"avatar_url":"https://avatars.githubusercontent.com/u/384824?v=3","gravatar_id":"","url":"https://api.github.com/users/smarek","html_url":"https://github.com/smarek","followers_url":"https://api.github.com/users/smarek/followers","following_url":"https://api.github.com/users/smarek/following{/other_user}","gists_url":"https://api.github.com/users/smarek/gists{/gist_id}","starred_url":"https://api.github.com/users/smarek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smarek/subscriptions","organizations_url":"https://api.github.com/users/smarek/orgs","repos_url":"https://api.github.com/users/smarek/repos","events_url":"https://api.github.com/users/smarek/events{/privacy}","received_events_url":"https://api.github.com/users/smarek/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":21,"state":"open","created_at":"2015-09-20T21:40:46Z","updated_at":"2015-10-23T14:38:50Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-10-23T14:25:11Z","updated_at":"2015-10-23T16:12:36Z","closed_at":null,"body":"Hello!\r\nI've been using this library with success for a long time. Now I have to connect to a SSL server with its custom certificate. I've tried to follow all steps in my app and it's not working so I've tried to run the sample, with no modifications, and it's not working too.\r\nThis is what I've done:\r\n- I've downloaded the loopj samples project.\r\n- I've made a clean, a rebuild and I've run the project just as it is in my Samsung Galaxy S5 and in my Sony Xperia.\r\n- Once the app is launched in my mobile I select CustomCASample cell.\r\n- I click on Run and the log shows me this error in both devices:\r\n\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Chain includes 3 certificates.\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Server Certificate Details:\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ ---------------------------\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ IssuerDN: CN=RapidSSL SHA256 CA - G3, O=GeoTrust Inc., C=US\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ SubjectDN: CN=*.fineswap.com, OU=Domain Control Validated - RapidSSL(R), OU=See www.rapidssl.com/resources/cps (c)14, OU=GT19090574\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Serial Number: 78622\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Version: 3\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Not before: Thu Dec 18 18:09:39 CET 2014\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ Not after: Mon Mar 21 08:38:30 CET 2016\r\n10-23 16:21:04.199  16178-16314/com.loopj.android.http.sample I/SecureSocketFactory﹕ ---------------------------\r\n10-23 16:21:04.209  16178-16314/com.loopj.android.http.sample E/SecureSocketFactory﹕ Certificate error\r\n    java.security.SignatureException: signature did not verify\r\n            at com.android.org.conscrypt.OpenSSLX509Certificate.verifyInternal(OpenSSLX509Certificate.java:358)\r\n            at com.android.org.conscrypt.OpenSSLX509Certificate.verify(OpenSSLX509Certificate.java:371)\r\n            at com.loopj.android.http.sample.util.SecureSocketFactory$1.checkServerTrusted(SecureSocketFactory.java:135)\r\n            at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:613)\r\n            at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)\r\n            at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)\r\n            at cz.msebera.android.httpclient.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535)\r\n            at cz.msebera.android.httpclient.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)\r\n            at cz.msebera.android.httpclient.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:472)\r\n            at cz.msebera.android.httpclient.conn.scheme.SchemeSocketFactoryAdaptor.connectSocket(SchemeSocketFactoryAdaptor.java:65)\r\n            at cz.msebera.android.httpclient.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)\r\n            at cz.msebera.android.httpclient.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:145)\r\n            at cz.msebera.android.httpclient.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:131)\r\n            at cz.msebera.android.httpclient.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)\r\n            at cz.msebera.android.httpclient.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)\r\n            at cz.msebera.android.httpclient.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:860)\r\n            at cz.msebera.android.httpclient.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)\r\n            at com.loopj.android.http.AsyncHttpRequest.makeRequest(AsyncHttpRequest.java:146)\r\n            at com.loopj.android.http.AsyncHttpRequest.makeRequestWithRetries(AsyncHttpRequest.java:177)\r\n            at com.loopj.android.http.AsyncHttpRequest.run(AsyncHttpRequest.java:106)\r\n            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n            at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)\r\n            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)\r\n            at java.lang.Thread.run(Thread.java:841)\r\n\r\nBoth my Sony Xperia and my Samsung Galaxy S5 have the correct date and time just in case this is important.\r\n\r\nSo, Am I missing something? Should I do anything else to avoid this error?\r\n\r\nThank you very much and kind regards!"},"comment":{"url":"https://api.github.com/repos/loopj/android-async-http/issues/comments/150621848","html_url":"https://github.com/loopj/android-async-http/issues/1008#issuecomment-150621848","issue_url":"https://api.github.com/repos/loopj/android-async-http/issues/1008","id":150621848,"user":{"login":"rferbesa","id":4902851,"avatar_url":"https://avatars.githubusercontent.com/u/4902851?v=3","gravatar_id":"","url":"https://api.github.com/users/rferbesa","html_url":"https://github.com/rferbesa","followers_url":"https://api.github.com/users/rferbesa/followers","following_url":"https://api.github.com/users/rferbesa/following{/other_user}","gists_url":"https://api.github.com/users/rferbesa/gists{/gist_id}","starred_url":"https://api.github.com/users/rferbesa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rferbesa/subscriptions","organizations_url":"https://api.github.com/users/rferbesa/orgs","repos_url":"https://api.github.com/users/rferbesa/repos","events_url":"https://api.github.com/users/rferbesa/events{/privacy}","received_events_url":"https://api.github.com/users/rferbesa/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T16:12:36Z","updated_at":"2015-10-23T16:12:36Z","body":"Ok! \r\nWhat I've done now is to take the sample and change TEST_SERVER, STORE_ALIAS, STORE_PASS and bks file to those I have to use, and the error is exactly the same again. As far as I know the iOS version of the Android app I'm developing is working properly with that certificate and server, so I guess there is no problem in the server side.\r\nI've looked into SSLLabs.com test but I don't know what to check in that huge report.\r\n"}}