06-11-2009 06:01 PM
I'm having and issue the SSL and was hoping someone could point me in the right direction.
In my code I have something like this:
http = (HttpConnection)Connector.open("https://www.example.com/myfile.aspx")
To open an https connection. The Certificate for the domain expired on 5/31/2009 and we renewed it before the expiration date and the certificate now expires on 5/31/2012. However all the blackberries that have my app installed are getting an error message that the certificate has expired and they have to click continue for the app to work. If they click the "view cert" button it shows the old certificate information. I was able to reproduce this using the simulator. I tried clearing the cache and that didn't change anything. I fired up a packet snifter and it looks like the blackberry displaying the message before it even hits the URL, almost if the old certificate is cached on the device. If I click "continue" in the simulator and watch the traffic I can see the new certificate being transmitted to the device, however if I restart the simulator I get the same error that shows the old certificate. If I visit the same URL via the browser I do NOT get the certificate error.
I ran clean.bat in the simulator directory and reinstalled my app and now I don't get the certificate error. That's fine for the simulator but how to I fixed the physical handhelds without a wipe?
Simulator and Handhelds are running 4.2.1
06-15-2009 10:54 AM
06-15-2009 06:51 PM
The certificate in question does not show up in that list.
The only certificates I see in that list are the ones added via Desktop manager (mostly root certificates).
There are no certifificates in the list for HTTPS websites via the browser or by the API.