Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Custom CA Certs #295

cdhunt started this conversation in Ideas
Mar 6, 2026 · 5 comments · 2 replies
Discussion options

Can you provide an argument and/or path to load custom CA certs similar to pkl for the formae cli?

You must be logged in to vote

Replies: 5 comments 2 replies

Comment options

Can you check and see if cert loading works from ~/.pkl/cacerts ? We will review adding a CLI flag or other method directly.

You must be logged in to vote
1 reply
Comment options

That is what I'm doing for pkl project resolve, but I get the SSL handshake error with formae eval main.pkl. I've even tried update-ca-certificates to update the system ca store and formae doesn't seem to use them. I'm using the formae docker image.

Comment options

That's strange, we will investigate.

You must be logged in to vote
0 replies
Comment options

I used pkl download-package projectpackage://hub.platform.engineering/plugins/pkl/schema/pkl/formae/formae@0.82.0 --cache-dir vendor

And put this in PklProject:

evaluatorSettings {
 moduleCacheDir = "vendor"
}

This was enough for me to get pkl eval working, but formae eval doesn't appear to use the moduleCacheDir setting.
image001

You must be logged in to vote
0 replies
Comment options

We need to update our Pkl stack to 3.1 I will take a look at this while doing that work, shortly.

You must be logged in to vote
0 replies
Comment options

That error would seem to imply however that the system cert chains aren't loaded, only the certs in the cacerts dir.

You must be logged in to vote
1 reply
Comment options

Sorry, to add some context, our corporate security implementation breaks TLS with an intentional man-in-the-middle attack to ensure we're not doing something nefarious on the internet. This breaks nearly every tool that tries to actually prevent this very behavior. I constantly play whack-a-mole with trying to get our CA cert in the correct place. I've tried updating the system cacerts, and for whatever reason, Pkl still choked on the self-signed cert, and I had to use the .pkl/cacerts. So, yes, I think you are correct about the system certs, but I'll take any functional approach so I can test out the tool.

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

AltStyle によって変換されたページ (->オリジナル) /