摘要: #lengthAdjustment是修正值的意思,如果是修正值,它修正的是什么数据呢? 我们知道LengthFieldBasedFrameDecoder解码器报文头里面会传一个报文体的长度值(我们称他为长度域),其实这个修正值就是修正长度域的。 #什么情况需要修正这个长度域? Netty读取完长度域 阅读全文
posted @ 2021-03-04 14:26 Small丶 阅读(984) 评论(0) 推荐(0) 编辑
摘要: #一、 ##File->Setttings->Editor->FileEncodings #二、 ##%GoLand_Home%/bin(注:%GoLand_Home%为goLand安装目录中goland.exe.vmoptions和goland64.exe.vmoptions文件末尾添加-Dfil 阅读全文
posted @ 2020-08-03 16:57 Small丶 阅读(2653) 评论(1) 推荐(1) 编辑
摘要: package sslSocket; import javax.crypto.Cipher; import java.io.FileInputStream; import java.security.*; import java.security.cert.Certificate; import j 阅读全文
posted @ 2020-07-24 16:56 Small丶 阅读(602) 评论(0) 推荐(0) 编辑
摘要: #服务端代码 public class SSLServer { public static void main(String[] args) throws Exception { //自己的证书,公钥和私钥,PKCS12是证书密码学标准 KeyStore keyStore=KeyStore.getI 阅读全文
posted @ 2020-07-24 16:52 Small丶 阅读(304) 评论(0) 推荐(0) 编辑
摘要: #一.SSL基础理论知识 ##1.什么是SSL? SSL(Secure Sockets Layer 安全套接字协议),及其继任者传输层安全(Transport Layer Security,TLS)是为网络通信提供安全及数据完整性的一种安全协议。TLS与SSL在传输层与应用层之间对网络连接进行加密。 阅读全文
posted @ 2020-07-24 16:25 Small丶 阅读(783) 评论(0) 推荐(0) 编辑