1

am working https webservice and the certificate is self signed, so import this into my project and create bks file for overriding the error , but still i get SSLPeerUnverfiedException . I had also check with following so question HttpGet with HTTPS : SSLPeerUnverifiedException ,this also not help me

Community
  • 1
  • 1
Bytecode
  • 6,551
  • 16
  • 54
  • 101

1 Answers1

0

Have you tried this approach by bob lee: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html It solved my issue

bpn
  • 3,082
  • 2
  • 19
  • 22
  • I have tried this also , i have import the certificate ,still i get the error. The certificate contain a series and the last one is expired – Bytecode May 28 '12 at 14:15
  • Has your self signed certificate expired? Maybe you should try creating a new certificate. – bpn May 28 '12 at 14:26
  • can we do anything at client side ,am not handling the server side – Bytecode May 28 '12 at 14:33
  • try this: http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https By default trusts all certificates, but you should be careful and be sure that the site is safe – bpn May 28 '12 at 14:43