Giter Site home page Giter Site logo

pki_security's Introduction

PKI Security

An assignment for CMPE 272, designing and implementing a secure webserver.

To get this code up and running, make sure you change the reference to the host domain for certbot and in the nginx/conf files to your own domain. Adding the --staging flag to the certbot will also help during testing to avoid hitting the certbot limit for requests. Make sure your domain points to the I.P of the remote or virtual machine you are using to run the docker-compose up -d command.

  1. Includes Root CA (Certificate Authority), Signing CA, and TLS (Transfer-Layer Security) certificate.

    a. Let's Encrypt is a service that operates its' own Root CA and Intermediate Signing CA's. 
    
    b. Let's Encrypt can issue free SSL/TLS certificates to enable HTTPS on web servers.
    
  2. The TLS certificate created by Let's Encrypt will be used to install a web server.

As this is an assignment requiring two services (the Let's Encrypt CA service, and the Tomcat web service), I will be adding an additional service (Docker) to simplify and automate the orchestration of these two services and allow for quick setup.

Steps

Clone this repo into the vm OR server you will be using as the I.P for your domain.

CD into the PKI_Security folder

Run docker-compose up -d

IMPORTANT:

Your first run will create the certificates in the certbot-etc volume attached to your webserver over HTTP.

To enable HTTPS with your new certificates, you should modify the webserver script:

docker-compose stop

modify your default.conf and uncomment the lines:

        #listen [::]:443;
        #listen 443 ssl; # managed by Certbot

        # RSA certificate
        #ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; #/etc/nginx/certs/localhost.pem; # managed by Certbot (or your own self signed local host certs)
        #ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; #/etc/nginx/certs/localhost-key.pem; # managed by Certbot


        #Redirect non-https traffic to https
        #if ($scheme != "https") {
        #    return 301 https://$host$request_uri;
        #} # managed by Certbot

docker-compose up -d

pki_security's People

Contributors

bryan-az 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.