Use SSL if needed. Fixes #14