mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-22 04:32:40 +09:00
The localapi cert/ endpoint fetches a cert when none is cached, so polling it triggers issuance. feature/acme can already report a cached cert without contacting the CA, but only over the C2N /tls-cert-status path. This moves that check into an extension method and serves it as localapi cert-status/, with a matching Client.CertStatus, reporting Missing on a cache miss instead of issuing. Client.CertStatus returns ErrCertStatusUnsupported (wrapping errors.ErrUnsupported) when tailscaled has no cert-status endpoint. Updates tailscale/corp#38175 Signed-off-by: chaosinthecrd <tom@tmlabs.co.uk>