Proposal: handling SSL setup and usage on local environments #332
Replies: 5 comments 1 reply
-
A popular solution being adopted around the scene - https://github.com/FiloSottile/mkcert |
Beta Was this translation helpful? Give feedback.
-
Other solution we may look into for adopting: https://github.com/pric/pric |
Beta Was this translation helpful? Give feedback.
-
Hi @fabriciojs, when you guys have plan to implement this feature. Now a days it is kind of crucial. Cheers. |
Beta Was this translation helpful? Give feedback.
-
@fabriciojs any update on this one? |
Beta Was this translation helpful? Give feedback.
-
There is a way to it using Caddy auto ssl: Add this to your docker-compose:
Create file
And comment ports section in your Then, you need to trust the local root cert, on mac you can do this:
|
Beta Was this translation helpful? Give feedback.
-
Local development that mimics all the scenario existing in a production environment is challenging, and using valid SSL local certificates nowadays play a big part in that.
Maybe we could help along with something like:
kool ssl enable
/ Generates and installs a new custom CAroot in the local host machine (maybe only possible under Linux out-of-the-box; should need manual steps on Windows/Macos)kool ssl cert kool.localhost
/ Generates a Cert/Key pair for the given domain, which will be valid for local access - put files in the current working directory.Do we have enough libraries to implement everything, or should we depend on some openssl images to run containers for this?
About installing/using the generated certificates, we could handle out-of-the-box for kooldev/php or kooldev/nginx images at least. For others we could only refer to documentation URL that helps figure out how to get them installed on other images.
Beta Was this translation helpful? Give feedback.
All reactions