Skip to content

nicolube/SimpleChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleChat

Simple chat is a simple example how to make a simple chat with a TLS encryption.

What does it need to get it to work?

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

How to disable TLS?

Simple comment .addLast("ssl", sslContext.newHandler(ch.alloc())) both main classes.

Client.java

Server.java

How to change the host?

You can change the hostname and port inside the Config source files

Client Config.java

Server Config.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages