Revert "Fixed broken SSL support"

This reverts commit 5d0d021a953a0f6a9da1033baca50eebffc0f41b.