Skip to content

Allow setting certificate path in pkl settings #1039

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

Open
rohan-datar opened this issue Apr 8, 2025 · 2 comments
Open

Allow setting certificate path in pkl settings #1039

rohan-datar opened this issue Apr 8, 2025 · 2 comments

Comments

@rohan-datar
Copy link

I'm using pkl in an environment that uses custom certificates for communicating with a private repo with some pkl modules. For now, I've been copying the custom certificates from the system certificate store to ~/.pkl/cacerts but this is annoying because the certificates have relatively short expiration times. Would it be possible to add an option to the pkl:settings module that allows you to set a static certificate path that is not ~/.pkl/cacerts? I would like to do something like this:

amends "pkl:settings"

cacerts = "/etc/ssl/certs/"
@HT154
Copy link
Contributor

HT154 commented Apr 8, 2025

I've not yet verified this works, but you might try symlinking ~/.pkl/cacerts to /etc/ssl/certs to avoid having to copy things around.

@rohan-datar
Copy link
Author

I've not yet verified this works, but you might try symlinking ~/.pkl/cacerts to /etc/ssl/certs to avoid having to copy things around.

Verified that this does work, but I don't think it's a great solution overall. I would still like the option of providing a custom cert path or telling pkl to use the system certs.

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

2 participants