When i execute same URL via HttpClient object then directly works in Linux Server or Windows Server but not works in tomcat Server.
My codes are given below :
try {
HttpPost httppost = new HttpPost(
"https://192.xxx.x.xx:8443/resources/login");
HttpClient httpclient = new DefaultHttpClient();
HttpResponse response = httpclient.execute(httppost);
} catch (Exception e) {
e.printStackTrace();
Log.e("problem", "" + " ," + e.toString());
}
When run this, then Exception Throw
javax.net.ssl.SSLPeerUnverifiedException: No peer certificate
How to solve this. Please help me.