fix bug that forced SSL when TLS is optional

fixes #2215
forgot to actually set the SSL context
Merge pull request #333 from devrandom/notls

Fix bug that forced SSL when TLS is optional