Refactored to separate class, cleaned up code
Call SSLSocket initSSL