CONN-340: using SSLContext.getSSLSocketFactory.
Merge pull request #579 from msweaver/CONN-340

CONN-340: using SSLContext.getSSLSocketFactory.