On 28.12.2021 20:54, Jan Palus wrote: > On 28.12.2021 20:35, Jakub Bogusz wrote: > > ``` > > [qboosh@carme-pld dssim-3.0.2]$ cargo vendor > > Updating crates.io index > > error: failed to sync > > > > Caused by: > > failed to load pkg lockfile > > > > Caused by: > > failed to get `imgref` as a dependency of package `dssim-core v3.1.0 > > (/home/users/qboosh/rpm/BUILD/dssim-3.0.2/dssim-core)` > > > > Caused by: > > failed to fetch `https://github.com/rust-lang/crates.io-index` > > > > 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); code=Certificate (-17) > > ``` > > > > Fetching `https://github.com/rust-lang/crates.io-index` with curl works. > > > > cargo-vendor works for me with rust 1.57.0 built with openssl 1.1.1l. > > I guess it has more to do with /etc/openssl/certs/ca-certificates.crt > being used on carme which is not owned by any package and dated > 2010-02-05.
Works better with SSL_CERT_FILE=/etc/certs/ca-certificates.crt cargo vendor Relevant code: https://github.com/alexcrichton/openssl-probe/blob/4a48569829cc7834817bf2fecf8fec4236fa6de5/src/lib.rs#L24-L44 https://github.com/alexcrichton/openssl-probe/blob/4a48569829cc7834817bf2fecf8fec4236fa6de5/src/lib.rs#L106-L115 _______________________________________________ pld-devel-en mailing list pld-devel-en@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-devel-en