pieterlouw / caddy-net

Proxy server type for Caddy server (https://github.com/mholt/caddy)
Apache License 2.0
66 stars 11 forks source link

Bugfix: ObtainCert cannot look at the Managed flag, so we should do that instead #16

Closed nielsavonds closed 4 years ago

nielsavonds commented 5 years ago

While using caddy-net, I discovered that none of the TLS directives seemed to work (tls off, tls self_signed, ...). However, setting the email address did work. The problem is that a certificate is fetched regardless of whether the TLS is being managed or not. This is incorrect and will not work on development setups where ACME fails.