Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 455
Registered: ‎01-14-2009
My Device: Apple iPhone 3GS 16GB

Download server SSL certificate

[ Edited ]

Folks,

 

Is there anyway I can download the SSL certificate of a server and verify it before trying to connect to it to send data? I am using ((HttpsConnection)conn).getSecurityInfo(); but it gives a Certificate type which doesnt have much useful info. When i tried to check for the type, it said net.rim.device.api.crypto.certificate.CertificateUtilities . Is there any way i can cast this to a X509 Certificate so I have access to bit more useful information ?

 

Any help would be appreciated.