Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Expired certificate bypassing

 
Alaa Abutabaq
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a j2me project that needs to connect https site. When I try to connect, a CertificateException.EXPIRED exception is catched. I want the mobile to accept this certificate and continue. Is that Possible?

When I caught the exception I get the certificate from the exception instance. I tried to set it to the connection using getSecurityInfo
but I discovered that SecurityInfo class has no setServerCertificate() method.
Anybody can help please


Thanks
 
Elías Turbay
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Alaa, if your site doesn't have a valid Certificate, there is no way to connect via HTTPS with MIDP2.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic