aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/cert.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cert.go')
-rw-r--r--cmd/cert.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/cert.go b/cmd/cert.go
index 7b68f330ec..cd6972ea86 100644
--- a/cmd/cert.go
+++ b/cmd/cert.go
@@ -67,7 +67,7 @@ func pemBlockForKey(priv interface{}) *pem.Block {
}
}
-func runCert(ctx *cli.Context) {
+func runCert(ctx *cli.Context) error {
if len(ctx.String("host")) == 0 {
log.Fatal("Missing required --host parameter")
}
@@ -158,4 +158,6 @@ func runCert(ctx *cli.Context) {
pem.Encode(keyOut, pemBlockForKey(priv))
keyOut.Close()
log.Println("Written key.pem")
+
+ return nil
}