m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.52k stars 263 forks source link

curl failed to verify legitimacy of rust download #2416

Open mhdevop opened 1 year ago

mhdevop commented 1 year ago

I saw an old issue ( https://github.com/m-ab-s/media-autobuild_suite/issues/2246 ) on this so hopefully this is a simple confirmation that there is nothing that can be done until the Rust website is updated? Or is there some "override" for just this one download? (I did try another computer and same result)

image

logs.zip

Biswa96 commented 1 year ago

The rustup shell script is working fine. Does the following command work in that terminal (as shown in the screenshot) ?

./rustup.sh -v -y --no-modify-path "--default-host=x86_64-pc-windows-gnu" --default-toolchain=stable
mhdevop commented 1 year ago

The rustup shell script is working fine. Does the following command work in that terminal (as shown in the screenshot) ?

./rustup.sh -v -y --no-modify-path "--default-host=x86_64-pc-windows-gnu" --default-toolchain=stable

Negative:

/trunk/build/rustinstall
$ ./rustup.sh -v -y --no-modify-path "--default-host=x86_64-pc-windows-gnu" --default-toolchain=stable
info: downloading installer
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe /tmp/tmp.fFXxgQPIvW/rustup-init.exe x86_64-pc-windows-gnu
Biswa96 commented 1 year ago

Could you check if the following package is installed?

pacman -S $MINGW_PACKAGE_PREFIX-ca-certificates
mhdevop commented 1 year ago
$ pacman -S $MINGW_PACKAGE_PREFIX-ca-certificates
warning: mingw-w64-x86_64-ca-certificates-20230311-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) mingw-w64-x86_64-ca-certificates-20230311-1

Total Installed Size:  0.96 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]
(1/1) checking keys in keyring                                           [#######################################] 100%
(1/1) checking package integrity                                         [#######################################] 100%
(1/1) loading package files                                              [#######################################] 100%
(1/1) checking for file conflicts                                        [#######################################] 100%
(1/1) checking available disk space                                      [#######################################] 100%
:: Processing package changes...
(1/1) reinstalling mingw-w64-x86_64-ca-certificates                      [#######################################] 100%
Micah@EDITOR /trunk/build/rustinstall
$ ./rustup.sh -v -y --no-modify-path "--default-host=x86_64-pc-windows-gnu" --default-toolchain=stable
info: downloading installer
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-gnu/rustup-init.exe /tmp/tmp.7c5H0D6oeN/rustup-init.exe x86_64-pc-windows-gnu