diff --git a/cmd/tailscale/cli/cert.go b/cmd/tailscale/cli/cert.go index 0c59d4c74..ba4679378 100644 --- a/cmd/tailscale/cli/cert.go +++ b/cmd/tailscale/cli/cert.go @@ -8,6 +8,7 @@ import ( "bytes" "context" "crypto/tls" + "errors" "flag" "fmt" "log" @@ -44,6 +45,7 @@ var certArgs struct { func runCert(ctx context.Context, args []string) error { if certArgs.serve { s := &http.Server{ + Addr: ":443", TLSConfig: &tls.Config{ GetCertificate: localClient.GetCertificate, }, @@ -57,7 +59,16 @@ func runCert(ctx context.Context, args []string) error { fmt.Fprintf(w, "