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

More recent versions of cfssl (~1.6.4) command syntax change #757

Open
krc opened this issue Jan 11, 2024 · 0 comments
Open

More recent versions of cfssl (~1.6.4) command syntax change #757

krc opened this issue Jan 11, 2024 · 0 comments

Comments

@krc
Copy link

krc commented Jan 11, 2024

For the admin cert generation there is this cli command:

cfssl gencert \
  -ca=ca.pem \
  -ca-key=ca-key.pem \
  -config=ca-config.json \
  -profile=kubernetes \
  admin-csr.json | cfssljson -bare admin

This no longer works with at least 1.6.4 (current version as of January 2024), it errors: "only one argument is accepted, please check with usage".

The fix is to replace the = with spaces

cfssl gencert \
  -ca ca.pem \
  -ca-key ca-key.pem \
  -config ca-config.json \
  -profile kubernetes \
  admin-csr.json | cfssljson -bare admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant