MIDP: Ignore Bad Certificates for HTTPS connection?

O

okapi

I'm writing a MIDP 2.0 MIDlet that will make connections against https
servers that do not have a certificate signed by a valid CA. I've been
searcing for how to avoid the bad certificate exception:

javax.microedition.pki.CertificateException: Certificate was issued by
an unrecognized entity

I found the parameter addition of ";CertificateErrorHandling=warn"
which avoids the bad certificate but still seems to leave the
connection non-functional as I get the following exception when trying
to get the response message from the HTTPS connection:

javax.microedition.io.ConnectionNotFoundException: TCP open

Any suggestions would be great.

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top