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

Set secure certificate slot policies by default #36

Open
yoavamit opened this issue Dec 20, 2023 · 0 comments
Open

Set secure certificate slot policies by default #36

yoavamit opened this issue Dec 20, 2023 · 0 comments

Comments

@yoavamit
Copy link
Collaborator

Background

Now that pivit supports setting the PIN and touch policy for keys generated on specific slots, it'd be a good idea to set those policies to their default settings if no specific policy flags (--pin-policy, --touch-policy) were specified.

For now, if no policy flags were specified, pivit sets the policy to never require a PIN and always require a touch when accessing the key.

Context

The decision to set the default policy to PIN=never and touch=always was made since it provides the most convenient and frictionless user experience, especially when using pivit to sign git commits and tags.

But, it's considered less secure, and not a best practice.

What's needed?

Instead of setting the slot access policy to be hardcoded to the above setting of no policy flags were specified, we should set the PIN and touch policy to the secure defaults for each slot as specified in the PIV standard, and summarized here

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

No branches or pull requests

1 participant