Skip to content

Error opening ~/.step/config/ca.json, whilst interacting with remote step-ca #561

Open
@rubin55

Description

@rubin55

Subject of the issue

After installing step-ca in a Docker container, as per instructions here, and initializing the (remote) step-cli client as per instructions documented (see previous link), I'm trying to follow the ACME setup tutorial, specifically here. I'm getting the following error (commands included):

# step ca health
ok
# step ca provisioner add acme --type ACME
error loading configuration: error opening /home/rubin/.step/config/ca.json: open /home/rubin/.step/config/ca.json: no such file or directory

I suspect ca.json exists within the Docker container running step-ca; it seems very counter-intuitive to me that I apparently can't run certain commands remotely, even though the step cli command is intended to remotely manage a step-ca instance, right?

This is either not explained thoroughly in the documentation (i.e., you need to explain that certain step commands can only run on where step-ca is physically running, not remotely, which I would also consider a usability bug/issue) or it's an actual bug.

Any insights or fixes much appreciated!

Your environment

  • OS - Alpine + Docker step-ca, Linux ARM64 for step-cli
  • Version - step-ca: 0.17.4, step-cli: 0.17.6

Steps to reproduce

See subject of the issue.

Expected behaviour

I would expect step-ca to be correctly configured, setting up the ACME provisioner, by the previously mentioned step-cli command.

Actual behaviour

error loading configuration: error opening /home/rubin/.step/config/ca.json: open /home/rubin/.step/config/ca.json: no such file or directory

Additional context

See subject of the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions