Devilbox: https support on Devilbox

Created on 31 Dec 2017  路  18Comments  路  Source: cytopia/devilbox

Hello,
Is it possible to have a self signed SSL to run an https on Devilbox?
If right, then is there any tutorial somewhere ?

feature

Most helpful comment

@sebastienserre not at the moment. SSL support is coming in the first quarter of this year.

All 18 comments

@sebastienserre not at the moment. SSL support is coming in the first quarter of this year.

@cytopia, Thanks for the great work.

Please add SSL support as soon as possible. It would be great if you could also add some devilish commands to automate most of the process for creating self signed certificates for local development.purposes.

Cheers!

I would love to see this added too. Again, moving from a different setup where i have SSL for a lot of projects so to be able to use this would need https! Thanks!!

Is it generally possible to have a wildcard certificate for e.g. *.dev or does it only work with domains?

As far as i'm aware, browsers wont trust a certificate that covers a whole TLD so pretty sure that wouldn't work. It would have to be per domain *.project1.loc

Then I guess certificates will have to be created for each available project on startup (or at least check if the currently available cert [if any] matches the current chosen TLD_SUFFIX).

I would say that is your only option, yes.

Hi! Do you have ETA on this one at all?

There is actually and I wanted to have it implemented by know, however I am still working on the documentation which took a little longer than expected.
This is scheduled when the documentation is finished: https://github.com/cytopia/devilbox/pull/186

So awesome. Thanks!! :)

Ooooh yes please! Ssl would be an awesome feature to add!
Thx for the great work!

@sebastienserre @aditya43 @johnwbaxter @yannandco @henscu @masiorama @alexagui @mrpsiho @mcliment

FYI: Work on HTTPS integration has been started already. See below for Roadmap and progress.


Roadmap

  1. [X] Implement SSL in vhost-gen: https://github.com/devilbox/vhost-gen/pull/24
  2. [x] Implement SSL in Nginx stable: https://github.com/devilbox/docker-nginx-stable/pull/9
  3. [x] Implement SSL in Nginx mainline: https://github.com/devilbox/docker-nginx-mainline/pull/10
  4. [x] Implement SSL in Apache 2.2: https://github.com/devilbox/docker-apache-2.2/pull/9
  5. [x] Implement SSL in Apache 2.4: https://github.com/devilbox/docker-apache-2.4/pull/9
  6. [x] Implement SSL in Devilbox: https://github.com/cytopia/devilbox/pull/239
  7. [x] Add documentation

Features

  • Vhosts are available by http and https
  • Self-signed certificates are created automatically for each vhost
  • Be able to use your own certificates as well

Comments

Let me know of any features or ideas.

ETA

~There will be a WIP branch probably by the end of this week for at least one webserver~

WIP branch: https://github.com/cytopia/devilbox/pull/239

I will create a CA, that is mounted to the Devilbox git directory and only created if it is not present (should not overwrite an existing CA). All subsequent vhost SSL certificates are signed by that CA. This allows you to import the mounted CA file into Chrome/FF/IE and regardless of Devilbox restarts or recreation of site certificates, you will always get a valid certificate for each project.

Devilbox on SSL

First working version is ready to check out. Instructions in PR: https://github.com/cytopia/devilbox/pull/239

I have created two scripts to easily generate CA's and certificates for SSL. If anyone here has some OpenSSL knowledge, please have a brief look and let me know if this is fine or needs some adjustments: https://github.com/devilbox/cert-gen

Done

Looks like it is finished now. Only part that is missing is the documentation. Check out the PR and let me know how it works for you:

https://github.com/cytopia/devilbox/pull/239

So awesome. Thanks for implementing this!!!

Released

Was this page helpful?
0 / 5 - 0 ratings

Related issues

StanMenten99 picture StanMenten99  路  6Comments

RaffyeMemon picture RaffyeMemon  路  4Comments

fkaminski picture fkaminski  路  4Comments

robots4life picture robots4life  路  6Comments

sustained picture sustained  路  6Comments