-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
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
| 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. | |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in ae4395
There was a problem hiding this 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') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
Done in 39d2122
Done in 39d2122
I think this is a privacyIDEA issue since it is currently providing the broken |
There was a problem hiding this 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.
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