Skip to content

Add a note in "EJBCA Integration with a SmartCard-HSM" about policy-kit #22

Description

@Tazmaniac

Is your feature request related to a problem or specific use case? Please describe.
On recent debian/ubuntu hosts, pcscd is compiled with policy kit support.
The proposed integration is not working because the UID used in the running ejbca container (10001) is not allowed to access to the pcscd socket

Describe the solution you'd like
/etc/polkit-1/rules.d/01-ejbca-container.rules
polkit.addRule(function(action, subject) {
if ((action.id == "org.debian.pcsc-lite.access_pcsc" ||
action.id == "org.debian.pcsc-lite.access_card") &&
subject.uid == 10001 ) {
return polkit.Result.YES;
}
});

Describe alternatives you've considered
Or disable policy kit support in pcscd: add "--disable-polkit" to PCSCD_ARGS in /etc/default/pcscd

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions