Giter Site home page Giter Site logo

apache-https's Introduction

apache-https

A small repository showing how to setup ssl on a docker image.

Installation

First of we need to create some certificates. The first one is done by running the create root certificate command and this will ask you some question about the your made up certificate authority.

cd etc
./create_root_cert.sh
cd ..

After that you run the command to create the domain specific certificate and prepare the docker image.

cd etc
./create_domain_cert.sh myserver.local
cd ..

Building your server image is just running the command below giving the image a tag of your liking.

sudo docker build -t myserver-image .

Next up we start the image and see the result of our work.

sudo docker run -dit --name myserver-container -p 8443:443 myserver-image

Lastly I add this little command so you can see which image you have in our setup and clean up with prune when your done. Notice that that command will remove all images in your environment so DO NOT RUN in production.

sudo docker images
sudo docker system prune -a

apache-https's People

Contributors

kalaspuffar avatar

Watchers

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