简体   繁体   中英

How to secure Netty connection?

I am trying to secure a Netty Connection, but I have no Idea, what I have to do, to secure it.

Since I do not know how to do this with Netty 5.0 Alpha2, and Google obfuscates me more than it helps, I ask this question here...

Just add the SslHandler into the ChannelPipeline . There are multiple examples in the netty repositories doing exactly this.

Also you should switch a stable version of netty, like the latest 4.1 release.

您可以在处理程序中编写自己的身份验证逻辑/ Lager,并将其作为入站处理程序添加到管道的开头,以为应用程序提供安全性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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