use TLS instead of SSL v3

Apple will soon remove ssl v3 support for security reasons