简体   繁体   English

在数据库中使用SSL证书

[英]Using SSL certificate in Database

I was exploring SSL certificates and its advantages. 我正在探索SSL证书及其优势。 There I came across using SSL certificate for Database connection. 在那里,我遇到了使用SSL证书进行数据库连接的问题。 I am confused with why we need secure connection with database. 我对为什么我们需要与数据库的安全连接感到困惑。 Since if secure connection is established between client and server, anyways server is what going to connect and fetch from Database. 由于如果在客户端和服务器之间建立了安全连接,那么无论如何服务器都是要从数据库进行连接和获取的。 Can someone help me in understanding why we need secure connection with Database? 有人可以帮助我理解为什么我们需要与数据库安全连接吗? Thanks in advance. 提前致谢。

You need SSL when the connection method is not secure, such as attaching to a remote database over the Internet. 当连接方法不安全时(例如,通过Internet附加到远程数据库),您需要SSL。 It's probably not a bad idea in general even for an internal application if there is any risk that someone, such as employee, may be able to intercept and either view the data in plaintext or do a MITM attack and they're not otherwise authorized to completely control the database. 通常,对于内部应用程序来说,如果存在某人(例如员工)可能能够拦截并以明文形式查看数据或进行MITM攻击的风险,并且通常没有授权他们这样做,那么对于一般内部应用程序来说,这可能也不是一个坏主意。完全控制数据库。

SSL的主要思想是防止中间人攻击,并确保远程服务器确实是他们所说的真实身份。

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

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