I am looking for a Python client for MSSQL, but one that supports encrypted connections to a remote MSSQL server.
Can someone recommend a technique for using Python to read from MSSQ开发者_运维问答L, over an encrypted connection?
Encryption is usually a feature of the MSSQL client library and/or the OS, not Python. So first work out what encrpytion mechanism you want to use, then see how you can use it from Python.
MSSQL can be configured to support and even require encrypted connections from clients:
http://msdn.microsoft.com/en-us/library/ms191192.aspx
That means that any Python library that uses the native MSSQL client drivers would support encryption, which probably means something like adodbapi or pymssql on Windows.
You could also look into implementing something at the OS level to encrypt all network traffic, or even the network level (using a VPN). It might be easier, depending on your requirements, But it's probably a question for http://serverfault.com.
精彩评论