Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
04-24-2012 03:14 AM
I am using a secure connection on BlackBerry. I have a client certificate(.crt).
How to open a secure connection?
How to add the client certificate to server connection code?
How to get certificate from Server?
How to verify the certificate?
I am using this code,it throws uncaught exception.
SecureConnectionconn = (SecureConnection) Connector
.open("tls://my server address:5061;deviceside=true",Connector.READ_WRITE
please help me.ASAP send sample code.
Solved! Go to Solution.
04-26-2012 11:24 AM
First you'll need to Add a Certificate to DeviceKeyStore. What exception are you getting (include its .toString details)?
04-26-2012 11:33 AM
I have added the certificate to Device Keystore(ex: ca.crt file) Successfully.I didn't get any exception.
I am using this code
SecureConnection conn=(SecureConnection )Connector.open("tls://addressort;deviceside=true");
How to add the certificate to Server conection code?Is it require or not? How to verify the server certificate?
04-26-2012 11:39 AM
What exception does that code give you?
I've attached a sample that shows various ways to make a secure connection. It's set to use WiFi only right now (interface=wifi).
07-05-2012 04:31 PM
Is there any difference between calling the following with "tls://"
sec = (SecureConnection)Connector.open(_theUrl); input = sec.openInputStream(); output = sec.openOutputStream();
and calling the following with "socket://"
s = (StreamConnection)Connector.open(_theUrl); tls10 = new TLS10Connection(s, _theUrl); input = tls10.openInputStream(); output = tls10.openOutputStream();
07-09-2012 01:04 PM
Not really. The first example (with the tls:// URL) does the same thing in the Connector.open call.