Using SSL Certificates on Netty

2019-04-13 14:29发布

问题:

I'm trying to build a simple client-server application using Netty which uses SSL certificates .

I looked around and I could only find the secure chat example [here]. It uses bogus certificates.

Could you help me to findout how to do a proper implementation of SSL certificates (self-signed) in Netty?

Thanks in advanced.

回答1:

I would recommend against self signed certificates. It's not worth the trouble. You can get signed certificate for free from StartSSL. Check out the link below on how to convert a signed certificate into PKCS12 format and use it in SSLContext to be used with Netty.

http://blog.hintcafe.com/post/33709433256/https-server-in-java-using-netty-and-keystore



标签: ssl netty