Skip to content

MSYS job failing with invalid SSL certificate error #14908

Description

@xtqqczze

MSYS2's Cargo ships with a libgit2 build that cannot validate GitHub's TLS certificate in CI, causing Git dependency fetches to fail with:

the SSL certificate is invalid; class=Ssl
Console log from CI
+ make install DESTDIR=/tmp/w PREFIX=/tmp/usr MULTICALL=y COMPLETIONS=n MANPAGES=n LOCALES=n 'SKIP_UTILS=arch b2sum base32 base64 basename basenc cat comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr factor false fmt fold head hostname hostid join link ln ls md5sum mkdir mktemp more mv nl nproc numfmt od paste pathchk pr printenv printf ptx pwd readlink realpath rm rmdir seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort split sum sync tac tail tee test touch tr true truncate tsort tty uname unexpand uniq unlink vdir wc whoami yes'
Detected OS = x86_64-pc-windows-gnu
    Updating git repository `[https://github.com/xtqqczze/djc-hostname.git`](https://github.com/xtqqczze/djc-hostname.git%60)
error: failed to load source for dependency `hostname`

Caused by:
  unable to update https://github.com/xtqqczze/djc-hostname.git?branch=target-aix#79b3e480

Caused by:
  failed to clone into: C:\Users\runneradmin\.cargo\git\db\djc-hostname-b43639a9f6b2c891

Caused by:
  revision 79b3e480f43a286cf493e45471e43546ab534f6b not found

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  the SSL certificate is invalid; class=Ssl (16)
cargo build --features openssl --features " " --profile=release --no-default-features
    Updating git repository `[https://github.com/xtqqczze/djc-hostname.git`](https://github.com/xtqqczze/djc-hostname.git%60)
error: failed to load source for dependency `hostname`

Caused by:
  unable to update https://github.com/xtqqczze/djc-hostname.git?branch=target-aix#79b3e480

Caused by:
  failed to fetch into: C:\Users\runneradmin\.cargo\git\db\djc-hostname-b43639a9f6b2c891

Caused by:
  revision 79b3e480f43a286cf493e45471e43546ab534f6b not found

Caused by:
  network failure seems to have happened
  if a proxy or similar is necessary `net.git-fetch-with-cli` may help here
  https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli

Caused by:
  the SSL certificate is invalid; class=Ssl (16)
make: *** [GNUmakefile:142: build-coreutils] Error 101

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions