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

support specifying custom trust store in trust command #665

Open
abbra opened this issue Nov 22, 2024 · 4 comments
Open

support specifying custom trust store in trust command #665

abbra opened this issue Nov 22, 2024 · 4 comments

Comments

@abbra
Copy link
Contributor

abbra commented Nov 22, 2024

I'd like to use trust command to manage custom trust store. This is needed for cases like encrypted DNS where a custom set of certificates and CA chains will be in use by local encrypted DNS end-points (unbound, bind, etc) and should not necessarily be trusted for the whole system.

I tried to specify paths to p11-kit-trust module via custom pkcs11.conf but trust command ignored it. Not sure how I can get it working with existing tools.

@ueno told me that it could be an RFE, hence this issue.

@pemensik
Copy link

Because user may want to use DNS certificates from diagnostic tools like dig, overriding $HOME to get custom certificates would not work. It may work for DNS cache service itself, but not when reproducing issues with command line tools.

@abbra
Copy link
Contributor Author

abbra commented Nov 27, 2024

If we enable specifying configuration per-application (via pkcs11.conf) in trust, then it will be applied automatically in command line tools.

@ueno
Copy link
Member

ueno commented Nov 27, 2024

I haven't tried, but if you specify the cofiguration in pkcs11.conf, does x-init-reserved: help? For example:

module: p11-kit-trust.so
x-init-reserved: paths='/home/someone/trust'

@abbra
Copy link
Contributor Author

abbra commented Dec 2, 2024

@ueno I tried that and nothing changed, sadly.

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

No branches or pull requests

3 participants