apache - Intermittent PeerUnverifiedException: No peer certificate with Android client -


i trying achieve android ↔ apache communication using https, error below. experience problem intermittently, 30% of time.

javax.net.ssl.sslpeerunverifiedexception: no peer certificate 

i searched on web answer has helped me...

here android code:

http_post = new httppost(utils.ip_address); http_post_data = new arraylist<namevaluepair>(); http_post_data.add(new basicnamevaluepair("regid", regid)); http_post_data.add(new basicnamevaluepair("email", globals.userinfo.mail)); http_post_data.add(new basicnamevaluepair("pass", globals.userinfo.pass)); http_post.setentity(new urlencodedformentity(http_post_data));  httpparams httpparameters = new basichttpparams(); httpconnectionparams.setconnectiontimeout(httpparameters, utils.timeout_connection); httpconnectionparams.setsotimeout(httpparameters, utils.timeout_socket);  http_client = new defaulthttpclient(httpparameters); response = http_client.execute(http_post); string responsebody = entityutils.tostring(response.getentity(), globalssingleton.applicationcharset); 

i have godaddy certificate. need change in server or android code fixed?

i able solve issue myself restarting emulator or creating new emulator, , run project in new emulator.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -