Skip to content

Signing a CSR from a Unifi Controller #413

Answered by maraino
tashian asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tashian,

The use of common names only for DNS authentication is currently deprecated, and the JWK provisioner enforces the use of at least one subject alternative name SAN. We probably should relax this requirement from the CSR, and just grab the CN and add it to a SAN.

Not all the provisioners have the same restrictions, for example, OIDC doesn't have that restriction, but using step will complain because the CN does not match the token subject, there's already an issue for loosening the requirements of step and relay just on step-ca (smallstep/cli#340). So right now, you can grab the OIDC token (using step ca token) and build a JSON like:

{
  "ott": "...the oidc token...",
  "csr": "-…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tashian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants