Hi All, Iam able to connect to http sites and some https sites using
DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("url"); httpclient.execute(httppost) But getting this Exception while accessing some https sites. Exception in thread "main" javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates (SSLSessionImpl.java:345) at org.apache.http.conn.ssl.AbstractVerifier.verify (AbstractVerifier.java:129) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket (SSLSocketFactory.java:322) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:129) at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:164) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:119) at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:347) at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:555) at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:487) at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:465) at Tripit.main(Tripit.java:151) Please suggest. Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---