mirror of
https://github.com/tailscale/tailscale.git
synced 2026-10-23 03:37:19 +09:00
When validation fails, WaitOrder returns only the order's status, so tailscale cert printed "acme: order ... status: invalid" with no reason. The CA's reason is on the authorization's challenge. Wait on each authorization before the order and return that error instead. To test this, move natlab's fake ACME CA to tstest/acmetest, where unit tests can import it, and teach it tls-alpn-01, a validation hook, and the "invalid" state a CA reports when validation fails. Updates #21759 Signed-off-by: Brendan Creane <bcreane@gmail.com>