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

Start p11-kit server with opensc provider when available. #5547

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

teamosceola
Copy link

The purpose of the p11-kit server session helper is to make host trusted certificates available in the sandbox. If the opensc module is available (checked by presence of opensc-tool in path) then start the p11-kit server with the opensc-pkcs11.so provider and pkcs11 uri set.

Ths pkcs11 uri for opensc has a query of: library-manufacturer=OpenSC Project & type=cert to ensure that it only provides objects of type "certificate" provided by the "OpenSC Project" library.

The pkcs11 uri is defined in RFC 7512

The purpose and driver for adding this change is to get US Government PIV cards (CAC) to work with the various flatpak'd web browsers such as chromium and all chromium based browsers such as Edge, and Firefox. Some info on the US PIV can be found on the OpenSC project here

The purpose of the p11-kit server session helper is to make host trusted certificates available in the sandbox. If the opensc module is availble (checked by presence of `opensc-tool` in path) then start the p11-kit server with the opensc-pkcs11.so provider and pkcs11 uri set.

Ths pkcs11 uri for opensc has a query of: `library-manufacturer=OpenSC Project` & `type=cert` to ensure that it only provides objects of type "certificate" provided by the "OpenSC Project" library.

The pkcs11 uri is defined in [RFC 7512](https://datatracker.ietf.org/doc/html/rfc7512)

The purpose and driver for adding this change is to get US Government PIV cards (CAC) to work with the various flatpak'd web browsers such as chromium and all chromium based browsers such as Edge, and Firefox. Some info on the US PIV can be found on the OpenSC project [here](https://github.com/OpenSC/OpenSC/wiki/US-PIV)
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.

None yet

1 participant