Hi i get the following exception thrown at me when trying to connect to a php server. the exception is:
javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity
my code is below:
Code:public void open() { try { server = (HttpsConnection) Connector.open(url); is = server.openInputStream(); os = server.openOutputStream(); Alert alert = new Alert ("Error"); alert.setString("everything working fine"); alert.setTimeout (3000); Display.getDisplay(root).setCurrent(alert); } catch(Exception e) { e.printStackTrace(); String error = e.toString(); Alert alert = new Alert ("Error"); alert.setString("Error, " + e); alert.setTimeout (5000); Display.getDisplay(root).setCurrent(alert); } }


Reply With Quote


Bookmarks