(ctx *cli.Context)
| 38 | } |
| 39 | |
| 40 | func getEncryptedKeyAction(ctx *cli.Context) error { |
| 41 | if err := errs.NumberOfArguments(ctx, 1); err != nil { |
| 42 | return err |
| 43 | } |
| 44 | |
| 45 | kid := ctx.Args().Get(0) |
| 46 | root := ctx.String("root") |
| 47 | caURL, err := flags.ParseCaURL(ctx) |
| 48 | if err != nil { |
| 49 | return err |
| 50 | } |
| 51 | |
| 52 | key, err := pki.GetProvisionerKey(caURL, root, kid) |
| 53 | if err != nil { |
| 54 | return errors.Wrap(err, "error getting the provisioning key") |
| 55 | } |
| 56 | |
| 57 | fmt.Println(key) |
| 58 | return nil |
| 59 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…