Updated to use TLSv1 rather than SSLv3 since Apple has disabled support
for SSLv3 as of Oct 29, 2014.