Git Product home page Git Product logo

qtcurl_ssl's Introduction

QtCurl_ssl

Example of cURL using SSL Certificate verification with apache, https

Dependencies

  1. Apache2
  2. libssl1.0-dev
  3. curl & libcurl
  4. OpenSSL - Optional

Apache2 site configuration

  1. Copy Sample_HTML/ to /var/www/html/

     sudo cp -rvf <Path_To>/QtCurl_ssl/Sample_HTML/* /var/www/html/
    
  2. Copy site conf to apache site-available

     sudo cp -rvf <Path_To>/QtCurl_ssl/apache/System.org.conf /etc/apache2/sites-available
    
  3. Copy sample certificates

     sudo cp -rvf <Path_To>/QtCurl_ssl/ssl_certs/ /opt
     sudo chown <USERNAME>:<USERNAME> -R /opt/ssl_certs/
    
  4. Enable site

     sudo a2ensite System.org
    
  5. set HostName

     sudo vim /etc/hosts
     SYSTEM_IP System System.org
    

    save and exit

  6. Restart apache2 service

     sudo systemctl restart apache2
    
  7. Verify url open any web browser

     https://System.org
    

Add CAFile in system

	sudo ln -s /opt/ssl_certs/arise1600.crt /etc/ssl/certs/TestSystem.pem

build (anyone step 1 or 2) and Run QtCurl_ssl

  1. Cmake build

     cd <Path_To>/QtCurl_ssl/
     mkdir cBuild && cd cBuild/
     cmake ..
     make
    
  2. Qmake build

     cd <Path_To>/QtCurl_ssl/
     mkdir qBuild && cd qBuild/
     qmake ..
     make
    
  3. Run

     ./QtCurl_ssl
    

qtcurl_ssl's People

Contributors

aks-arise1600 avatar

Watchers

 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.