Stop depending on SSL when we do not have to

Fixes #889.

Tested.