你的客户名和密码被破解了 别让你的数据在网上裸奔
什么是信息安全
信息安全主要包括以下三方面的内容:
- 保密性
- 真实性
- 完整性
如何保障数据安全?
保证信息安全的唯一途径 数据信息加密!!!
对称加密初体验
密码或者密钥其实就是字符串或者字节流
你的客户名和密码被破解了 别让你的数据在网上裸奔
非对称加密原理
你的客户名和密码被破解了 别让你的数据在网上裸奔
非对称密钥与证书的关系
非对称密钥:公钥和对应私钥组成,公钥加密,私钥解密
证书:以 .cert 结尾的文件,可以嵌入在浏览器或者其它用户端,核心组件为公钥
你的客户名和密码被破解了 别让你的数据在网上裸奔
证书应用
web应用使用证书后,证书被加载到浏览器,使用https请求项目才会使用到证书
https发起请求默认请求到服务器443端口(可自己设置),与http默认请求80端口原理一致
证书在Tomcat中的应用
使用tomcat做安全认证服务器,自己设置https命中8443端口
你的客户名和密码被破解了 别让你的数据在网上裸奔
Tomcat的http快速改成https
将证书信息配置到server.xml
<pre style=”background-attachment: scroll; background-clip: border-box; background-color: rgb(244, 245, 246); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: repeat; background-size: auto; border-bottom-color: rgb(232, 232, 232); border-bottom-style: solid; border-bottom-width: 1px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-left-color: rgb(232, 232, 232); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(232, 232, 232); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(232, 232, 232); border-top-style: solid; border-top-width: 1px; box-sizing: border-box; color: rgb(153, 153, 153); font-family: Consolas,Menlo,Courier,monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 1.5; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em; orphans: 2; padding-bottom: 12px; padding-left: 10px; padding-right: 10px; padding-top: 12px; position: relative; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-tap-highlight-color: transparent; -webkit-text-stroke-width: 0px; white-space: pre-wrap; word-spacing: 0px;”>1. keytool -genkey -v -alias tomcat -keyalg RSA -validity 36500 -keystore e:\tomcat.keystore -dname “CN=localhost,OU=cn,O=cn,L=cn,ST=cn,c=cn” -storepass password -keypass password
2. keytool -export -alias tomcat -keystore e:\tomcat.keystore -file e:\tomcat.cer -storepass password
3. <Connector port=”8443″ protocol=”org.apache.coyote.http11.Http11Protocol” SSLEnabled=”true” maxThreads=”150″ scheme=”https” secure=”true” clientAuth=”false” sslProtocol=”TLS” keystoreFile=”E:/tomcat.keystore” keystorePass=”password” />
</pre>
你的客户名和密码被破解了 别让你的数据在网上裸奔
集成高可用集群方案-Nginx
Ngine X,是一款自由的、开源的、高性能HTTP服务器和反向代理商服务器。
其高性能和低消耗内存的结构,使得其越来越普遍,典型的一个应用就是我们可以使用Nginx作为反向代理商进行网站的负载均衡器。
Nginx神秘面纱揭开
百度百科:Nginx做为互联网高并发的必备技术,其并发能力的确在同类型的网页服务器中体现很好,掌握Nginx技术应从哪着手
你的客户名和密码被破解了 别让你的数据在网上裸奔
Nginx负载均衡原理
你的客户名和密码被破解了 别让你的数据在网上裸奔
深入剖析Nginx+Https内部流程
你的客户名和密码被破解了 别让你的数据在网上裸奔
看图文没看懂?没关系!本文附完整详细的视频讲解,需要的朋友可以私信我【Nginx】免费获取!
我还整理了少量互联网公司java程序员在面试中涉及到的绝大部分架构面试题及答案做成了文档和架构视频资料免费分享给大家(包括Dubbo、Redis、Netty、zookeeper、Spring cloud、分布式、高并发等架构技术资料)也可以关注取得更多的面试资料,节省大家收集的时间!
觉得不错的朋友记得帮忙转发文章和关注哦!
欢迎关注专栏:Java架构技术进阶。里面有大量batj面试题集锦,还有各种技术分享,如有好文章也欢迎投稿哦。 微信公众号:慕容千语的架构笔记。欢迎关注一起进步。
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » 你的客户名和密码被破解了 别让你的数据在网上裸奔