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
New Developer
tonybunce
Posts: 13
Registered: ‎08-15-2008
My Device: Not Specified

SSL Issues

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

Please use plain text.
Administrator
MSohm
Posts: 14,525
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: SSL Issues

You can view and delete certificates stored on the BlackBerry handheld by going to Options, Security Options, Certificates.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
tonybunce
Posts: 13
Registered: ‎08-15-2008
My Device: Not Specified

Re: SSL Issues

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.

Please use plain text.
New Developer
tonybunce
Posts: 13
Registered: ‎08-15-2008
My Device: Not Specified

Re: SSL Issues

Anyone else have any ideas on this?  I'm seeing this on 5-10 devices so it is not an isolated issue.

 

 

Please use plain text.