Fix SSL protocol errors

Fixes #9.
1.0.5