summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2017-02-10 00:41:36 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2017-02-10 00:41:36 -0500
commit4f08bb569822e7ccad42e8d22258e6107c895f5e (patch)
tree76a3d205d8dcd63d8636101af34233b0e2575cf9
parent770215dbfdffd0a37d0c051092ae441070eec260 (diff)
tls-getcerts: status updates on stderr
-rw-r--r--tls-getcerts.go2
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]")
}
}