Ignoring CertificateException in J2ME
Hi,
I have a MIDP application that communicates with some servers by using HTTPS. Some of these servers can use self-signed certificates. This results in the following error:
javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity.
How I can ignore this error? In Java SE I can redefine the TrustManager. How can I do this in J2ME?
[395 byte] By [
adelinerda] at [2007-11-26 21:56:41]

# 1
Firstly you cannot get a desktop functionality on to the handheld.
But if you have class 3 root certificates of your cerificate issuing authority installed by the OEM while burning the firmware on the device it will never throw that exception.
If all self-signed certificates works normally then what is the point in having PKI security feature and certificate issuing authorities?
~Mohan