[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-13 Thread Dimitri John Ledkov
In other distributions opensc by default is configured to use: PKCS11 default provider: /usr/lib64/opensc-pkcs11.so PKCS11 onepin provider: /usr/lib64/onepin-opensc-pkcs11.so which we do on Ubuntu as well, but with multiarch paths. However, I see that other distributions ship .module files to

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-12 Thread Dimitri John Ledkov
I see that in Fedora opensc provides a p11kit module to allow using opensc-pkcs11.so via p11-kit's proxy module https://src.fedoraproject.org/rpms/opensc/blob/rawhide/f/opensc.module -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-12 Thread Dimitri John Ledkov
libp11 in Ubuntu uses p11-kit-proxy.so by default already, so I don't believe it needs changing does it? Focal: https://launchpad.net/ubuntu/+source/libp11/0.4.10-1 https://launchpad.net/ubuntu/+source/libp11/0.4.10-1/+build/17239024

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-12 Thread Dimitri John Ledkov
** Description changed: - To be able to switch modules at runtime via configuration file change the default module from opensc-pkcs11 to p11-proxy module, which by default loads opensc-pkcs11 module unless configured by administrator to use something else. - This also allows configuration where

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-07 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: opensc (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968175 Title:

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-07 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: libp11 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968175 Title:

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-07 Thread Ondrej Kubik
Attached examples with changes to address this bug: https://git.launchpad.net/~ondrak/ubuntu/+source/opensc/commit/?h=ubuntu/focal=5866e8c8397b896f002e784ecc3d03005943e00a https://git.launchpad.net/~ondrak/ubuntu/+source/libp11/commit/?h=ubuntu/focal=6df6a659416fcc1c3ffc46346e7edb38eb10b3d4 --

[Bug 1968175] Re: Allow runtime configuration of pkcs11 modules through config file

2022-04-07 Thread Ondrej Kubik
** Also affects: libp11 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1968175 Title: Allow runtime configuration of pkcs11 modules through