anxiousmodernman / co-chair

dynamic proxy
Apache License 2.0
4 stars 1 forks source link

Incorporating automatic HTTPS #25

Open anxiousmodernman opened 5 years ago

anxiousmodernman commented 5 years ago

Current state:

We rely on API clients to send cert and key as []byte when adding a backend to the proxy. When we receive a connection, we look at the domain on the request and query the database to find the associated entry with the cert we require.

Problems:

  1. If we had a wildcard cert for several subdomains, we'd have to duplicate the data in the database. For example, for domains one.example.com and two.example.com, they would both need duplicate bytes for a valid *.example.com wildcard cert.
  2. We don't provide a magical option for LetsEncrypt

Our goal is to do what Caddy does, which is to attempt to transparently provide https via letsencrypt if a path to a cert and key are not provided.

We'll also want to: