Skip to content

Commit aa6277f

Browse files
committed
account for custom path in cert generation
1 parent 8461c8e commit aa6277f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/cert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ func runCert(_ context.Context, c *cli.Command) error {
187187
if err != nil {
188188
return fmt.Errorf("failed to write cert: %w", err)
189189
}
190-
fmt.Fprintln(c.Writer, "Written cert.pem")
190+
fmt.Fprintf(c.Writer, "Written cert to %s\n", c.String("out"))
191191

192192
keyOut, err := os.OpenFile(c.String("keyout"), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0o600)
193193
if err != nil {
@@ -201,6 +201,6 @@ func runCert(_ context.Context, c *cli.Command) error {
201201
if err != nil {
202202
return fmt.Errorf("failed to write key: %w", err)
203203
}
204-
fmt.Fprintln(c.Writer, "Written key.pem")
204+
fmt.Fprintf(c.Writer, "Written key to %s\n", c.String("keyout"))
205205
return nil
206206
}

0 commit comments

Comments
 (0)