HTTPS_Server OpenSSL pre requirements: sudo apt-get install libssl-dev Generate a self-signed cert.pem && key.pem (server side): openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost' Generate ca-bundle.crt (client side): openssl x509 -outform pem -in cert.pem -out ca-bundle.crt Compile time g++ -pthread -o server server.cc -lssl -lcrypto g++ -pthread -o client client.cc -lssl -lcrypto