Creating a security helper class to establish a TLS secured connection