Installation does not allow for intermediate certificate
In an organization that I am currently working for, the installation steps do not work properly.
In your installation steps, this one works fine after setting some global variables to not verify certificates: cargo install cargo-c
Here is the setup of global variables I was using
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
ENV CARGO_HTTP_CHECK_REVOKE=false
RUN git config --global http.sslVerify "false"
ENV CURLOPT_SSL_VERIFYHOST=false
ENV CURLOPT_SSL_VERIFYSTATUS=false
ENV CURLOPT_SSL_VERIFYPEER=false
However, in the step
cargo cbuild -p gst-plugin-aws --prefix=/usr
The SSL errors that disappeared for the cargo install cargo-c
command appeared again:
Updating crates.io index
Updating git repository `https://gitlab.freedesktop.org/gstreamer/gstreamer-rs`
Updating git submodule `https://github.com/gtk-rs/gir`
Updating git submodule `https://github.com/gtk-rs/gir-files`
Updating git submodule `https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git`
Updating git repository `https://github.com/gtk-rs/gtk-rs-core`
Updating git submodule `https://github.com/gtk-rs/gir`
Updating git submodule `https://github.com/gtk-rs/gir-files`
Updating git repository `https://github.com/gtk-rs/gtk3-rs`
Updating git submodule `https://github.com/gtk-rs/gir`
Updating git submodule `https://github.com/gtk-rs/gir-files`
Updating git repository `https://github.com/rust-av/ffv1.git`
Updating git repository `https://github.com/rust-av/flavors`
Updating git repository `https://github.com/gtk-rs/gtk4-rs`
Updating git submodule `https://github.com/gtk-rs/gir.git`
Updating git submodule `https://github.com/gtk-rs/gir-files.git`
Downloading crates ...
Error: CliError { error: Some(failed to download from `https://crates.io/api/v1/crates/async-tungstenite/0.17.2/download`
Caused by:
[60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: self signed certificate in certificate chain)), exit_code: 101 }
The command '/bin/sh -c cd gst-plugins-rs && cargo cbuild -p gst-plugin-aws --prefix=/usr -- --insecure' returned a non-zero code: 1
Is there a way to instruct your build to allow for self-signed certificates?