Skip to content

SSL Integration

JabenB53 edited this page Jul 6, 2020 · 1 revision

Adding SSL [7/5/2020]

What is SSL? (Basically, your browser and the website come up with a code for scrambling and unscrambling your info so it doesn't get yoinked by some hacker)

This is how we've gone about trying to get an SSL certificate for Nginx (to protect Grafana)

Steps taken:

  1. Make sure your branch is up to date

  2. Build all containers using "docker-compose -f docker-compose.yml up --build" (you can use "docker ps" to see what containers are running [add "-a" to see all containers])

  3. SSH into nginx container using "docker exec -it container_name /bin/bash" (I ended up having to change it a bit and use "winpty docker exec -it container_name sh" )

  4. Go here https://certbot.eff.org/lets-encrypt/pip-nginx (Certbot for Nginx and other Unix) and follow these ^ steps (I left out "sudo", & you've already done the first one at this point) (I ended up having to run "apt-get update" and then "apt-get install wget" to get the correct tools)

  5. For step 3, we used the "get and install" option.

  6. (We got through most of step 3 of the certbot guide, but then I accidentally misinput something and it went wonky. Luckily, it was at the end. so I believe everything still got downloaded.) Eventually (I ended up having to run the Certbot step 3 command again) you will be prompted to "Please enter in your domain name(s) (comma and/or space separated) (Enter 'c' to cancel)" We're hoping to get a subdomain from ENC IT, and at this point we'll want to use that IP address.

Clone this wiki locally