Thanks to visit codestin.com
Credit goes to github.com

Skip to content

andreipaciurca/HTTPS_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPS_Server

OpenSSL pre requirements:

  1. sudo apt-get install libssl-dev

Generate a self-signed cert.pem && key.pem (server side):

  1. openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodes -subj '/CN=localhost'

Generate ca-bundle.crt (client side):

  1. openssl x509 -outform pem -in cert.pem -out ca-bundle.crt

Compile time

  1. g++ -pthread -o server server.cc -lssl -lcrypto
  2. g++ -pthread -o client client.cc -lssl -lcrypto

About

Simple HTTP/HTTPS C++ server one threaded

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages