miurahr / aqtinstall

aqt: Another (unofficial) Qt CLI Installer on multi-platforms
https://aqtinstall.readthedocs.io/en/latest/
MIT License
922 stars 86 forks source link

[Question]: SSL issue on machine with self signed root certificate #820

Closed dk-mushiyoke closed 3 weeks ago

dk-mushiyoke commented 3 weeks ago

Bug description

Running python -m aqt install-qt --outputdir ./deps/qt windows desktop 6.7.2 win64_msvc2019_64 on a machine that has a self signed root cert that routes all traffic to a proxy results in SSL error on all mirrors.

The mirrors work fine in a browser as the root cert has been trusted in Windows Certificate Manager

Expected behavior

Would be nice to be able to pass a certificate to the command, or have a flag that ignores SSL errors

aqt and python version

aqtinstall(aqt) v3.1.18 on Python 3.12.6 [CPython MSC v.1940 64 bit (AMD64)]

Operating System

Windows

Relevant log output

INFO    : aqtinstall(aqt) v3.1.18 on Python 3.12.6 [CPython MSC v.1940 64 bit (AMD64)]
WARNING : Specified Qt version "6.7.2" did not exist when this version of aqtinstall was released. This may not install properly, but we will try our best.
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
WARNING : Connection to 'https://download.qt.io' failed. Retrying with fallback 'https://qt.mirror.constant.com/'.
WARNING : Failed to download checksum for the file 'Updates.xml'. This may happen on unofficial mirrors.
ERROR   : Failure to connect to https://qt.mirror.constant.com/online/qtsdkrepository/windows_x86/desktop/qt6_672/Updates.xml: SSLError

Code of Conduct

miurahr commented 3 weeks ago

Requests, a HTTP network access library that aqtinstall depends on, does not use the Windows Certification Manager. Please consult with the requests manual.

dk-mushiyoke commented 3 weeks ago

@miurahr thank you for the links to Requests' documentation site, I was able to follow this section and set REQUESTS_CA_BUNDLE=path/to/pem environment variable. aqt then was able to download and install normally.