First you have to download the certificate file manually. To do this open your Firefox browser and type the URL which enables SSL. Then you can see a Padlock bottom of the browser. Double click the pad clock . then you can see the certificate window. Click View Certificate button. In the certificate viewer window select Details Tab and select Export button. Then Save your Certificate as X.509 (PEM) format. You will get this kind of file. Open eclipse and Create new Blackberry Project. Copy Certificate file in to the same package that class created. (In here I'm writing my code in Main.java class thus i copied the certificate file in to Main package.) Following shows code sample public Certificate ReadFile() { try { Class classs = Class.forName( "com.ironone.main.Main" ); InputStream is = classs.getResourceAsStream( "/DigiCertEVRootCA.crt" ); // Certificate File Name :DigiCertEVRootCA.crt byte [] data = new byte [is.available()]; is.read(dat...
MELICK RAJEE BARANASOORIYA | Enterprise Architect