GithubHelp home page GithubHelp logo

dangtathanh / netcore-ssl-by-proxy Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 834 KB

A demo of .net core MVC with SSL using reverse proxy

Dockerfile 3.22% C# 44.87% HTML 43.79% CSS 6.75% JavaScript 1.38%

netcore-ssl-by-proxy's Introduction

netcore-ssl-by-proxy

A demo of .net core MVC with SSL using reverse proxy

  1. Create self certificate using opensll

    a - Execute command to pull & build openssl image

    docker build -t my-openssl:latest .
    

    b - Execute command to run OpenSSL

    docker run -it --rm -v "C:/Projects/demo/openssl:/openssl-certs:/openssl-certs" my-openssl
    

    c - Execute follow commands to create certificate

    genrsa -out server.key 2048
    
    req -new -out server.csr -key server.key -config openssl.cnf
    
    x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt -extensions v3_req -extfile openssl.cnf
    
  2. Copy the certificate to nginx-reverse-proxy/cert directory

  3. Install certificate that was generated above to Trusted Root Certification Authorities & Personal

  4. Run docker-compose up --build to start

netcore-ssl-by-proxy's People

Contributors

dangtathanh avatar dngtathanh avatar

Watchers

James Cloos 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.