diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-10 00:41:36 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-10 00:41:36 -0500 |
commit | 4f08bb569822e7ccad42e8d22258e6107c895f5e (patch) | |
tree | 76a3d205d8dcd63d8636101af34233b0e2575cf9 | |
parent | 770215dbfdffd0a37d0c051092ae441070eec260 (diff) |
tls-getcerts: status updates on stderr
-rw-r--r-- | tls-getcerts.go | 2 |
1 files changed, 2 insertions, 0 deletions
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]") } } |