美文网首页Java架构技术进阶程序员互联网科技
你的用户名和密码被破解了 别让你的数据在网上裸奔

你的用户名和密码被破解了 别让你的数据在网上裸奔

作者: 程序员北游 | 来源:发表于2019-08-07 18:05 被阅读7次

什么是信息安全

信息安全主要包括以下三方面的内容:

  1. 保密性
  2. 真实性
  3. 完整性

如何保障数据安全?

保证信息安全的唯一途径 数据信息加密!!!

对称加密初体验

密码或密钥其实就是字符串或字节流

你的用户名和密码被破解了 别让你的数据在网上裸奔

非对称加密原理

你的用户名和密码被破解了 别让你的数据在网上裸奔

非对称密钥与证书的关系

非对称密钥:公钥和对应私钥组成,公钥加密,私钥解密

证书:以 .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面试题集锦,还有各种技术分享,如有好文章也欢迎投稿哦。 微信公众号:慕容千语的架构笔记。欢迎关注一起进步。

相关文章

网友评论

    本文标题:你的用户名和密码被破解了 别让你的数据在网上裸奔

    本文链接:https://www.haomeiwen.com/subject/nndplctx.html