繁体   English   中英

如何使用证书保护SQL Server数据库连接的安全?

[英]How do I secure SQL Server database connection using certificate?

目前,我有Windows App,它使用SqlConnection对象直接打开数据库连接(SQL Server位于远程位置),而没有任何适当的安全措施。

现在,我需要使用证书来保护数据库连接。 我阅读了有关在SQL Server和Windows应用程序上添加证书的内容。 但是我对如何做到以及如何有效尚无清晰的了解。 有人可以给我一些想法,有用的articale链接或示例代码吗?

我的一位朋友建议我创建“ Web服务”并将其托管在IIS上,因为我们可以在IIS上为“ Web服务”配置证书。 并从Windows应用程序中调用该WebService。 但是我不确定这个解决方案有多好。

谢谢您的协助。

此链接在此逐步说明( How To: Use SSL to Secure Communication with SQL Server-http://msdn.microsoft.com/zh-cn/library/ff649255.aspx

Step 1. Request and Install a Server Authentication Certificate
Step 2. Verify that the Certificate Has Been Installed
Step 3. Install the Issuing CA's Certificate on the Client
Step 4. Force All Clients to Use SSL
Step 5. Allow Clients to Determine Whether to Use SSL
Step 6. Verify that Communication Is Encrypted

并且,然后阅读此处- How to enable SSL encryption for SQL Server 2000 if you have a valid Certificate Server

http://support.microsoft.com/default.aspx?scid=kb;zh-CN;276553

这可能会给您一些想法和方向。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM