Change SSL settings to TLSv1, to avoid SSLv3 POODLE vulnerability

Fixes #492