From 4f08bb569822e7ccad42e8d22258e6107c895f5e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 10 Feb 2017 00:41:36 -0500 Subject: tls-getcerts: status updates on stderr --- tls-getcerts.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tls-getcerts.go b/tls-getcerts.go index d386b90..71fb8f4 100644 --- a/tls-getcerts.go +++ b/tls-getcerts.go @@ -168,6 +168,7 @@ func split(socket string) (net, addr string) { func main() { for _, socket := range os.Args[1:] { + fmt.Fprintf(os.Stderr, "Getting %q... ", socket) block := pem.Block{ Type: "CERTIFICATE", Headers: map[string]string{"X-Socket": socket}, @@ -181,5 +182,6 @@ func main() { block.Headers["X-Error"] = err.Error() } pem.Encode(os.Stdout, &block) + fmt.Fprintln(os.Stderr, "[done]") } } -- cgit v1.2.3-2-g168b