Skip to content

Experimental Custom TLS Cert and Let's Encrypt integration - #2458

Merged
rfay merged 16 commits into
ddev:masterfrom
rfay:20200817_custom_certs
Aug 23, 2020
Merged

rfay merged 16 commits into
ddev:masterfrom
rfay:20200817_custom_certs

Conversation

@rfay

@rfay rfay commented Aug 18, 2020 •

Copy link
Copy Markdown
Member

The Problem/Issue/Bug:

In the future, with hardened images, DDEV-Local may be able to run on a server with the global config router_bind_all_interfaces: true and serve as an open-source small-site hosting possiblity.

This PR enables letsencrypt for that situation. It's only useful on a host that is internet-connected.

This is dependent on #2456 and will have to be rebased after that goes in.

TODO

  • Allow use of supplied certs in addition to mkcert certs
  • Fix docs so the magic docker check command doesn't have to mount homedir
  • Enable LetEncrypt usage (requires config command and support)
  • Allow auto-restart of containers (reboot/docker restart)
  • Docs for external cert usage
  • Docs for LetsEncrypt usage (and when you can do it)
  • Test for auto-restart feature
  • Figure out how obsolete custom certs can be deleted. Or give awkward docs since it's experimental?

How this PR Solves The Problem:

Manual Testing Instructions:

  • Try Let's Encrypt integration on live site with 3 projects
  • Try use of a custom cert (Use mkcert to make it) in .ddev/custom_certs
  • Test custom certs with multiple hostnames (multiple certs, one per additional_hostnames]
  • Test Let's Encrypt with additional_fqdns[]

Automated Testing Overview:

Related Issue Link(s):

Release/Deployment notes:

@rfay
rfay force-pushed the 20200817_custom_certs branch 6 times, most recently from 8c5807c to 57e0000 Compare August 21, 2020 03:58
@rfay rfay changed the title Experimental Letsencrypt integration Experimental Custom TLS Cert and Let's Encrypt integration Aug 21, 2020
@rfay
rfay force-pushed the 20200817_custom_certs branch from 66d384c to fdb5894 Compare August 21, 2020 20:46
@rfay
rfay force-pushed the 20200817_custom_certs branch from fdb5894 to a8f4df4 Compare August 22, 2020 22:09
@rfay
rfay merged commit c35a329 into ddev:master Aug 23, 2020
@rfay
rfay deleted the 20200817_custom_certs branch August 23, 2020 00:20
@rfay rfay mentioned this pull request Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant