tailscale / tscert

Minimal package for just the HTTPS cert fetching part of the Tailscale client API
BSD 3-Clause "New" or "Revised" License
23 stars 4 forks source link

allow passing context to GetCertificate #9

Closed willnorris closed 4 months ago

willnorris commented 4 months ago

Add a new GetCertificateWithContext to allow passing an existing context. Also export the default dialer method, so that callers that override TailscaledDialer can fall back to this if other methods fail.

This is being added to support the caddy-tailscale plugin to work with caddy's auto_https functionality. See https://github.com/tailscale/caddy-tailscale/pull/53

/cc @mholt