What is the correct way to create a SSL socket connection in iOS?
I've implemented a SSL server in Java by:
- creating a SSL certificate with a store password
- loading it by setting the system properties "javax.net.ssl.keyStore" and "javax.net.ssl.keyStorePassword"
- creating a SSLServerSocket with the SSLServerSocket factory
Now I want to create a client app which opens a socket connection in a thread and communicates over that. What is the proper way to create such a connection and do the communication with my servers certificate?