• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Expired certificate bypassing

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic