Fixed TlsException error on Windows system.