Skip to content

vimleshkumarkanaujiya/crowcpp_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Crow Web Framework Using SSL Certificate

Dependencies Required:

  1. Boost C++ Library
  2. Crow C++ Web Framework

Follow the steps to generate a Self Signed Certificate

Run as Root

sudo su

Generate a private key

openssl genpkey -algorithm RSA -out localhost.key

I am testing this certificate on Ubuntu localhost (127.0.0.1), so I named it "localhost.key".

Generate a Certificate Signing Request (CSR):

Create a CSR file, which will be used to generate the self-signed certificate. Replace your_csr.csr with the desired name for your CSR file:

openssl req -new -key your_key.key -out localhost_csr.csr

Follow the prompts to enter information such as your Common Name (CN).

when asked for Common Name you should typically be set to localhost for localhost testing.

Use the CSR to generate the self-signed certificate.

Replace your_cert.crt with the desired name for your certificate file:

openssl x509 -req -days 365 -in localhost_csr.csr -signkey localhost.key -out localhost.crt

I am using localhost_csr.csr and localhost.key, which we previously generated.

.crt and .key files are generated in the home directory

Copy those two files to the root directory of your project.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published