Updated Windows 8.1 logic to use TLS instead of SSL (deprecated)