Simple chat is a simple example how to make a simple chat with a TLS encryption.
You need to generate certifcate pair for the encryption.
You can generate it with openssl req -x509 -nodes -newkey rsa:4096 -keyout privkey.pem -out csr.pem
and copy them into Server/src/main/resources
,
also copy the csr.pem
into Client/src/main/resources
Simple comment .addLast("ssl", sslContext.newHandler(ch.alloc()))
both main classes.
You can change the hostname and port inside the Config source files