Skip to content

[Bug]: Context is not honored #2043

@LaudixGit

Description

@LaudixGit

Steps to Reproduce

Install: winget install Smallstep.step
create cert: step ca init --deployment-type standalone --name "cntx01" --dns "localhost" --address "127.0.0.1:443" --provisioner "MyProv" --context "cntx01"

Your Environment

  • OS - Windows 11
    [environment]::OSVersion.Version
    Major : 10
    Minor: 0
    Build: 22631
    Revision: 0

  • step-ca Version -Smallstep CLI/0.27.5 (windows/amd64)

Expected Behavior

new files should be created in a subfolder
$env:USERPROFILE/.step/authorities/cntx01/certs/root_ca.crt

Actual Behavior

files are created at top folder
$env:USERPROFILE/.step/certs/root_ca.crt

Creating a new root cert results in overwritten the existing.
image

Additional Context

I am setting up a new laptop and this error occurs.
Issue occurs at a command prompt (cmd) and in a PowerShell terminal

step runs as expected on my old laptop (windows 10, step version 27.4)

Documentation still states there should be an "authorities" folder

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).

Metadata

Metadata

Assignees

Labels

bugneeds triageWaiting for discussion / prioritization by team

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions