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

Add Script to enroll Yubikey PIV Certificates #54

Merged
merged 3 commits into from
Jul 17, 2020

Conversation

plettich
Copy link
Member

@plettich plettich commented Jul 2, 2020

The script creates a certificate signing request on the Yubikey and sends
it to privacyIDEA to get it signed. It also creates an attestation
certificate to attest the CSR coming from the Yubikey hardware (currently
privacyIDEA does not support this).
This script is still work in progress.

Working on #42 and #43

The script creates a certificate signing request on the Yubikey and sends
it to privacyIDEA to get it signed. It also creates an attestation
certificate to attest the CSR coming from the Yubikey hardware (currently
privacyIDEA does not support this).
This script is still work in progress.

Working on #42 #43
@plettich plettich requested a review from cornelinux July 2, 2020 14:29
| Proper Certificate checking can NOT be guaranteed! |
| Currently all (generated) certs will be written out to ease |
| development and debugging. |
| One day this script might also become part of the privacyIDEA admin tool. |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would dump the last sentence.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in ae4395

@plettich plettich requested a review from laclaro July 6, 2020 18:40
Copy link
Collaborator

@laclaro laclaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Please add required packages to documentation swig libpcsclite-dev

  • Please add requirement of a working CAConnector in privacyIDEA to documentation.

  • Please add documentation for openssl.cnf requirements.

@click.option('-d', '--device', type=int, metavar='SERIAL')
@click_pin_option
@click_management_key_option
@click.option('-s', '--subject', help='Subject string for the Certificate')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make subject a required argument.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 39d2122

@click.option('-t', '--token', help='Admin token for the privacyIDEA API')
@click.option('-c', '--ca', help='CA connector in privacyIDEA')
@click.option('-k', '--keyfile', help='Verify response from privacyIDEA with key',
default=None)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an option to ignore SSL cert validation.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 39d2122

- Add some more information about installation to Readme and setup.py.
- The enroll-yubikey-piv script checks whether the necessary packages are
  installed since `pyscard` requires a C building tool-chain.
- Suppress usage output when failing in enroll-yubikey-piv script
- Make the `subject` parameter required and add a `nosslcheck` parameter
@plettich
Copy link
Member Author

plettich commented Jul 16, 2020

* Please add required packages to documentation swig libpcsclite-dev

Done in 39d2122
Since these packages are not required by the main privacyidea tool, i have added a check when running the enroll-script.

* Please add requirement of a working CAConnector in privacyIDEA to documentation.

Done in 39d2122

* Please add documentation for openssl.cnf requirements.

I think this is a privacyIDEA issue since it is currently providing the broken openssl.cnf. We should discuss it there.

Copy link
Collaborator

@laclaro laclaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the updates.

@laclaro laclaro merged commit 8ea39c6 into master Jul 17, 2020
@plettich plettich deleted the 42/add_script_to_enroll_yk_piv_certs branch July 21, 2020 09:10
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

Successfully merging this pull request may close these issues.

3 participants