Giter VIP home page Giter VIP logo

httpd-ssllabs-aplus's Introduction

OBJETIVE

Ths is a Dockerfile to build a container from the latest HTTPD image with A+ Overall Rating in SSL Labs with hardenized options.

PREREQUITES

Have your own SSL Certificate in the same folder.

-rw------- 1 root root  1708 Jun 22 05:22 privkey.pem
-rw-r--r-- 1 root root  3562 Jun 22 05:22 fullchain.pem
-rw-r--r-- 1 root root   692 Jun 22 05:22 README.md
-rw-r--r-- 1 root root 20929 Jun 22 05:27 httpd.conf
-rw-r--r-- 1 root root   243 Jun 22 05:38 Dockerfile
-rw-r--r-- 1 root root 13900 Jun 22 18:33 httpd-ssl.conf

USAGE

  1. Just put your SSL Certificates in the same folder, in this example I use a free certificates from Letsencrypt. The Dockerfile will rename it in the HTTPD expected name.
  • privkey.pem --> /usr/local/apache2/conf/server.key
  • fullchain.pem --> /usr/local/apache2/conf/server.crt
  1. Modify the httpd.conf file at the bottom to your domain name in order to redirect from HTTP to HTTPS.
<VirtualHost *:80>
        ServerName your.domain.com
        Redirect 301 / https://your.domain.com/
</VirtualHost>
  1. Edit the httpd-ssl.conf in the ServerName and ServerAdmin options with your information.

  2. Build the image with the Dockerfile

docker build -t <image_name> .
  1. Run the image
docker run -dit -p 80:80 -p 443:443 --name www -v /var/www/html:/usr/local/apache2/htdocs/ <image_name>

NOTES

  • The SSLCipherSuite is modified to:
SSLCipherSuite ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
  • The SSL protocols are the following:
SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1

httpd-ssllabs-aplus's People

Contributors

jortok avatar

Watchers

 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.