[osgeo4w-dev] [osgeo4w] #715: ssl.SSLError: A failure in the SSL library occurred (_ssl.c:1129)
OSGeo4W
trac_osgeo4w at osgeo.org
Thu May 5 01:06:37 PDT 2022
#715: ssl.SSLError: A failure in the SSL library occurred (_ssl.c:1129)
------------------------+----------------------------
Reporter: andreaerdna | Owner: osgeo4w-dev@…
Type: defect | Status: closed
Priority: major | Component: Package
Version: | Resolution: fixed
Keywords: |
------------------------+----------------------------
Comment (by hellik):
Replying to [comment:8 hellik]:
> Replying to [comment:7 andreaerdna]:
> > Replying to [comment:5 jef]:
> > > Grmpf, tried the patch without success. `prgcloud.com` still fails.
On a closer look this is (meanwhile?) because its certificate is for
`www.prgcloud.com`. `www.prgcloud.com` and `www.python.org` work fine.
> >
> > >
> > > Guess the fix for #696 cured this too.
> >
> >
> > I cannot confirm the fixing of this bug.
>
> same here.
>
> adding some OSGeo related URLs to the list
>
> {{{
>
> for i in ['prgcloud.com', 'www.prgcloud.com', 'www.python.org',
'grass.osgeo.org', 'www.osgeo.org']:
> }}}
>
> results in OSGeo4W Version 2:
>
now tested in OSGeo4W Version 1:
{{{
run o-help for a list of available commands
C:\>cd D:\wd\testmypa
C:\>d:
D:\wd\testmypa>py3_env.bat
D:\wd\testmypa>SET PYTHONHOME=C:\OSGEO4~1\apps\Python37
D:\wd\testmypa>SET
PYTHONPATH=C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts
D:\wd\testmypa>PATH
C:\OSGEO4~1\apps\Python37;C:\OSGEO4~1\apps\Python37\Scripts;{app};C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program
Files\R\R-4.0.3\bin\x64
D:\wd\testmypa>python --version
Python 3.7.0
D:\wd\testmypa>python test.py
ssl prgcloud.com: FAIL [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed: Hostname mismatch, certificate is not valid for 'prgcloud.com'.
(_ssl.c:1045)
urllib prgcloud.com: FAIL <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: Hostname mismatch, certificate is not valid for
'prgcloud.com'. (_ssl.c:1045)>
ssl www.prgcloud.com: OK
urllib www.prgcloud.com: OK
ssl www.python.org: OK
urllib www.python.org: OK
ssl grass.osgeo.org: OK
urllib grass.osgeo.org: OK
ssl www.osgeo.org: OK
urllib www.osgeo.org: OK
D:\wd\testmypa>
}}}
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/715#comment:9>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the osgeo4w-dev
mailing list