Can Pymssql have a secure connection (SSL) to MS SQL Server?

前端 未结 4 1405
逝去的感伤
逝去的感伤 2021-01-21 03:35

I\'m making queries from a MS SQL server using Python code (Pymssql library) however I was wondering if there was any way to make the connection secure and encrypt the data bein

4条回答
  •  一向
    一向 (楼主)
    2021-01-21 04:08

    pymssql certainly claims to be able to work with encrypted connections to the SQL Server (via OpenSSL). One reason why some might believe it to be impossible is that Windows releases of pymssql versions prior to 2.1.2 were shipped with pymssql statically linked to FreeTDS for unencrypted connections only.

    Starting with version 2.1.2, the Windows release of pymssql is shipped dynamically linked to FreeTDS so it can support both unencrypted connections (via FreeTDS alone) or encrypted connections (via FreeTDS and OpenSSL). For details – and an important update re: versions 2.1.3 and later – see the related answer here.

提交回复
热议问题