Skip to content

[Bug]: step ca init --key Doesn't Create A Key File #1748

Backlog

Description

@miqrogroove

Steps to Reproduce

I used step ca init --key with an existing certificate and existing key file to setup a new CA. I was later confused because even though the CLI initially printed this...

✔ Root certificate: /root/.step/certs/root_ca.crt
✔ Root private key: /root/.step/secrets/root_ca_key

... the key file was never created at that location.

And forgive me if this would be a separate bug, but every time I tried to use step certificate create --ca-key with the non-existent path, it printed this every time:

exec: "step-kms-plugin": executable file not found in $PATH

Your Environment

  • OS - Ubuntu 26.04.1 LTS
  • step CLI Version - Smallstep CLI/0.31.0 (linux/amd64)

Expected Behavior

step ca init should print a key file path consistent with the --key option and/or create the expected file.

step certificate create should not throw plugin errors for a missing key file.

Actual Behavior

step ca init assumes the key file will always be created in the default location, even when that doesn't happen.

step certificate create throws exec: "step-kms-plugin": executable file not found in $PATH when the key file is missing.

Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Activity

  1. added
    needs triage
    on Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions