08-01-2008 03:39 PM
Quote from the previous forum:
Cast the connection returned to a SecureConnection and try opening your InputStream and OutputStream from there. If you continue to have problems please provide the BlackBerry model and handhed software version you are testing on. You can find this under Options, About on the BlackBerry.
08-04-2008 12:49 AM
Hello,
thanks for your reply. I tried to cast return object to this type or even dont cast at all:
public static void main(String[] args) { try { /*Connection cc =*/ javax.microedition.io.Connector.open("ssl://pbxtr a.axmor.nsk:5222;deviceside=false;EndToEndRequired "); } catch(Exception e) { System.out.println(e.toString()); } }
But this also throws the exception. I tried this on the emulator that comes with JDE 4.3.0 with MDS running at the same time.
08-04-2008 07:22 AM
I found the cause of the problem! An SSL certificate we are using on the server is not trusted (valid and not expired, but not trusted). Surely we'll resolve this issue shortly on our testing server.
Please let me know if this is possible to bypass not trusted certificates. This is not great to ask end users to have trusted certificates. On some platforms (like Windows Mobile) there are ways to allow specific or all certificates from the code. I know that in J2ME this is not possible. What about Blackberry?
08-07-2008 11:54 AM
You can use the Certificate Sync feature of Desktop Manater to load your certificate on a BlackBerry. The user can then trust it and your application can use it for its connection.
Please note that this feature is not installed by default so you'll need to perform an advanced installation and select it.