Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: step ca init ignores --context flag when using --pki #1710

Open
larsks opened this issue Feb 11, 2024 · 0 comments
Open

[Bug]: step ca init ignores --context flag when using --pki #1710

larsks opened this issue Feb 11, 2024 · 0 comments
Assignees
Labels
bug needs triage Waiting for discussion / prioritization by team

Comments

@larsks
Copy link

larsks commented Feb 11, 2024

Steps to Reproduce

With a step context already set:

$ step context list
▶ vault-test

Attempt to initialize a ca in a new context with the --pki flag:

$ step ca init  --pki --deployment-type standalone --name='test ca' \
  --password-file <(echo secret) --context test-ca

This command attempts to overwrite the files in the previously selected context, rather than using the context specified in the --context argument:

Generating root certificate... done!
Generating intermediate certificate... done!
✗ Would you like to overwrite /home/larsks/.step/authorities/vault-test/certs/root_ca.crt [y/n]: █

Your Environment

  • OS - Fedora 38
  • step-ca Version - 0.25.2

Expected Behavior

I expected step ca to generate files in the specified context.

Actual Behavior

It attempted to overwrite files in the current context instead.

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

@larsks larsks added bug needs triage Waiting for discussion / prioritization by team labels Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs triage Waiting for discussion / prioritization by team
Projects
None yet
Development

No branches or pull requests

2 participants