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
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.