For this chat you we'll need CMake 3.0 and OpenSSL 1.0, or higher, & pthread. Hosting & joining the server requires MacOS and Linux (Windows support will be added in the future as soon as possible).
The server requires a public and private certificate in .pem extension. Execute the following command to create them:
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout key.pem -out public.pem -days 365
Is possible to change the name of both certificates.
To run the server you need to use this command
chat_server {port} {private_certificate_path} {public_certificate_path}
It starts the server listening on the specified port. If private and public certificates are not provided, default values will be used:
- "key.pem" for private certificate
- "public.pem" for public certificate
Please notice that the certificates must be in the current working directory.
To join to the server you only need the server's address (IP or Horstname) and public certificate. The public certificate must be provided by the server owner.
chat_client {address} {port} {public_certificate_path}
If no public certificate is provided a default value will be used:
- "public.pem" for public certificate
Please notice that this certificate must be in the current working directory.
Create an interface for Linux (KDE & gnome) and macOS (Swift)