r/embeddedlinux • u/EmbedSoftwareEng • Feb 17 '26
Passing additional arguments to wget when it's invoked inside bitbake?
I have a rather unique (*cough* ZScaler *cough*) situation that I'd like to try solving with altered wget invocations. It appears that wget isn't looking in the "standard" places in my Linux system where the ZScalerRootCerts are stored, so when it goes to pull down rust crates from crates.io, the connection fails, because the certificate it sees was regenerated by the ZScaler servers in my corporate IT network on the fly, and so don't match anything that crates.io might be using. The ZScaler CA root certificates are stored in /usr/share/ca-certifiates/ZScalerRootCerts/, which is passed through read-only to my docker build container, along with the --net=host argument, so anything accessing the network will appear to the network as coming directly form the host environment.
If wget isn't looking in the entire /usr/share/ca-certificates/ hierarchy to find its CA certificates, then I need to pass the above directory to wget's --ca-directory= argument. But where in the bitbake architecture would I do that?
View all comments
Show parent comment
1
u/EmbedSoftwareEng Feb 18 '26
openssl version -ddoesn't tell you the specific directory where it's going to look for certificate files. It tells you the root of the directory hierarchy where it's going to look for certificate files. And the kind of certificate I have for my corporate ZScaler is a.crtfile, which will work when it's in thecerts/directory under the directory thatopenssl version -dtells me.So, when I launched the build container with the argument
-v /usr/share/ca-certificates/trust-source/anchors/:/usr/lib/ssl/certs:ro, that largely worked.Now, instead of gagging on:
it's gagging on:
Now, to figure out how to make git look in a specific place for its CA certificates.