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
posted 10 years ago
Hi Alaa, if your site doesn't have a valid Certificate, there is no way to connect via HTTPS with MIDP2.