Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:SecureConnection with SSL connection string fails in Symbian^3 (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Tested with
Devices(s): Symbian^3
Created: User:Kbwiki (12 Apr 2011)
Last edited: hamishwillee (22 Oct 2013)


A secure socket stream connection with SSL connection string fails with Java Runtime 2.1 for Symbian which was delivered in the first commercial firmware for Symbian^3 devices. For the affected devices, an attempt to make a SecureConnection with an SSL string results in throwing the exception javax.microedition.pki.CertificateException: Untrusted server.

How to reproduce

This issue can be reproduced by implementing a test MIDlet which uses the following string format for making a SocketConnection:"ssl://<host>:<hostport>")


The issue has been fixed and the fix will be made available in newer firmware releases for the affected Symbian^3 devices. The Java Runtime for Symbian version which has been verified to include the fix for the issue is 2.2.39; the version information can be acquired as system property of microedition.platform as described in Java Developer's Library.

For making a secure connection, HTTPS could be used instead of SSL whenever possible. As an example involving both HTTPS and SSL for making secure connections, the system property microedition.platform could be used for determining the Java Runtime versions, followed by an application logic to use HTTPS for the Java Runtime versions which are affected by the issue and SSL for the Java Runtime versions which are not affected by the issue or which include the fix.

This page was last modified on 22 October 2013, at 07:09.
52 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.