Why "unable to get local issuer certificate" when built with LibreSSL? #1493
Replies: 1 comment 3 replies
-
Thanks for sharing! This issue seems familiar actually, even though I never dug deeper.
LibreSSL is used through
I don't really know how it works, except that it's a matter of |
Beta Was this translation helpful? Give feedback.
-
As mention in #1486 (comment), I can build
gitoxide
in the defaultmax
configuration for thex86_64-unknown-linux-musl
target using thestable-x86_64-unknown-linux-musl
on an Alpine Linux 3.17 system, overcoming OpenSSL-build failures by usingapk add libressl-dev
, which also installslibressl3.6-libcrypto
,libressl3.6-libssl
, andlibressl3.6-libtls
as dependencies, instead of having theopenssl
andopenssl-dev
packages installed.However, with such a build cloning
https://
URLs does not seems to ever actually work:This is not specific to cloning it as a nested repository. Copying the executables out to another location and invoking from there has the same problem. The text shown above is copied from Alpine Linux 3.17, but the statically linked binary seems like it should work on any system, and it does run and clone
ssh://
URLs without problems both on that system and on Ubuntu 22.04 LTS. But that error also happens on Ubuntu 22.04 LTS, which has OpenSSL installed. There are no apparent differences in the error message.I am unsure if this is a bug in
gitoxide
, or if I have made a mistake in the available libraries and tools for the build, or if LibreSSL should not be expected to work at all or should be expected to require further configuration on any system where a binary built with it being used, or something else. What's going on here?I'd be happy to convert this to an issue if this is due to a bug in
gitoxide
. I'm not sure, though, since #1242 mentions that with OpenSSL there is an external dependency. This is even though I believe it is statically linked, withldd
andfile
indicating this.So I guess part of what I'm asking here is, what is the nature of the external OpenSSL dependency that is required with the
max
build configuration? Is this looking for a list of trusted certificate authorities or other local configuration?Beta Was this translation helpful? Give feedback.
All reactions