`step ca certificate` should warn when passed-in subject names are ignored

Open
#1,271 2 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@maraino is already working on this.

Since Sep 24, 2024.

Assessment

This issue has not been assessed yet.

Description

enhancement needs triage

When I get a certificate using an OIDC provisioner, the --san I provide is silently ignored.
step should warn the user that the flag was ignored.

example output:

step ca certificate vpn --san strongswan.lan vpn.crt vpn.key --not-after 8784h
✔ Provisioner: authority-admin (OIDC) [client: de7774d8-a136-4e29-8450-026022a64ce4]
Your default web browser has been opened to visit:

https://auth.smallstep.com/oidc/auth?client_id=de77...

⚠️ Your subject name and --san flag were ignored. By default, OIDC provisioners issue certificates based on trusted OIDC token values only.
✔ CA: https://my.ca.smallstep.com
✔ Certificate: vpn.crt
✔ Private Key: vpn.key
Dominant language
Go
Stars
4.3k
Forks
320
Avg merge
1d 21h
Merged PRs (30d)
10

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from smallstep/cli

All issues in smallstep/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.