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

No complex subject allowed in "ykman piv generate-csr" #342

Closed
cornelinux opened this issue May 25, 2020 · 2 comments
Closed

No complex subject allowed in "ykman piv generate-csr" #342

cornelinux opened this issue May 25, 2020 · 2 comments

Comments

@cornelinux
Copy link

  • YubiKey Manager (ykman) version: 3.1.1
  • How was it installed?: Ubuntu Repository
  • Operating system and version: Ubuntu 18.04
  • YubiKey model and version: 5.1.2
  • Bug description summary: Can not create CSR with a more complex subject

Steps to reproduce

  1. Create a key pair on the yubikey:
ykman piv generate-key --algorithm RSA2048 9a user.pub
  1. Now create a CSR with this public key:
ykman piv generate-csr -s "/CN=user/DC=example/DC=com" 9a user.pub user.req

The resulting CSR has the subject

CN = "/CN=user/DC=example/DC=com"

Expected result

I would expect that I get a CSR and a certificate with a subject like

CN = user, DC = example, DC= com

Actual results and logs

The value specified in -s is always put completely into the CN field. It is not possible to define subjects, that consist of CN, OU and DC.

However, this is necessary for several use cases.

@dagheyman
Copy link
Contributor

Thanks, yes this is currently a limitation in the tool. Duplicate of #278

@cornelinux
Copy link
Author

I did not see this. The other issue is well documented. Closing mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants