Giter Site home page Giter Site logo

crowcpp_ssl's Introduction

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.

crowcpp_ssl's People

Contributors

vimleshkumarkanaujiya avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.