indygreg / PyOxidizer

A modern Python application packaging and distribution tool
Mozilla Public License 2.0
5.32k stars 227 forks source link

Invalid peer certificate error #697

Open brentgunderson opened 1 year ago

brentgunderson commented 1 year ago

I am behind a corporate firewall, and the command pyoxidizer run fails with this message:

error[PYOXIDIZER_BUILD]: error sending request for url (https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer

I am able to manually download this file: https://github.com/indygreg/python-build-standalone/releases/download/20221220/cpython-3.10.9%2B20221220-x86_64-pc-windows-msvc-shared-pgo-full.tar.zst

Is is possible to redirect pyoxidizer to use this downloaded file?

kaplan2539 commented 10 months ago

I believe this could help, however we'd need to change PyOxidizer code and use the nativeTLS stuff as described here: https://github.com/JuliaLang/juliaup/issues/170