File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -230,8 +230,9 @@ func createAction(ctx *cli.Context) error {
230230 }
231231
232232 var (
233- priv interface {}
234- pubPEM * pem.Block
233+ priv interface {}
234+ pubPEM * pem.Block
235+ outputType string
235236 )
236237 switch typ {
237238 case "x509-csr" :
@@ -258,6 +259,7 @@ func createAction(ctx *cli.Context) error {
258259 Bytes : csrBytes ,
259260 Headers : map [string ]string {},
260261 }
262+ outputType = "certificate signing request"
261263 case "x509" :
262264 var (
263265 err error
@@ -319,6 +321,7 @@ func createAction(ctx *cli.Context) error {
319321 Headers : map [string ]string {},
320322 }
321323 priv = profile .SubjectPrivateKey ()
324+ outputType = "certificate"
322325 default :
323326 return errs .NewError ("unexpected type: %s" , typ )
324327 }
@@ -344,7 +347,7 @@ func createAction(ctx *cli.Context) error {
344347 }
345348 }
346349
347- ui .Printf ("Your certificate has been saved in %s.\n " , crtFile )
350+ ui .Printf ("Your %s has been saved in %s.\n " , outputType , crtFile )
348351 ui .Printf ("Your private key has been saved in %s.\n " , keyFile )
349352
350353 return nil
You can’t perform that action at this time.
0 commit comments