Coder Social home page Coder Social logo

qianyebudao / springbootnettysslsocketdemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lance2038/springbootnettysslsocketdemo

0.0 0.0 0.0 44 KB

springboot整合netty实现的sslsocket的demo,含业务解析器,报文加解码处理工具类

Java 100.00%

springbootnettysslsocketdemo's Introduction

socket/sslSocket + Netty/原生socket 整合的Demo,可任意切换

关于项目中使用的4个证书,使用Java自带的keytool命令,在命令行生成: 1、生成服务器端私钥kserver.keystore文件 keytool -genkey -alias serverkey -validity 1 -keystore kserver.keystore 2、根据私钥,导出服务器端安全证书 keytool -export -alias serverkey -keystore kserver.keystore -file server.crt 3、将服务器端证书,导入到客户端的Trust KeyStore中 keytool -import -alias serverkey -file server.crt -keystore tclient.keystore 4、生成客户端私钥kclient.keystore文件 keytool -genkey -alias clientkey -validity 1 -keystore kclient.keystore 5、根据私钥,导出客户端安全证书 keytool -export -alias clientkey -keystore kclient.keystore -file client.crt 6、将客户端证书,导入到服务器端的Trust KeyStore中 keytool -import -alias clientkey -file client.crt -keystore tserver.keystore 生成的文件分成两组,服务器端保存:kserver.keystore tserver.keystore 客户端保存:kclient.keystore tclient.kyestore

springbootnettysslsocketdemo's People

Contributors

lance2038 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.