lmacken / quantumrandom

Tools for utilizing the ANU Quantum Random Number Generator
https://pypi.python.org/pypi/quantumrandom
146 stars 36 forks source link

Changed the request method to 'requests.get()' instead of 'urllib.urlopen()' to fix SSL issues. #29

Closed breadbored closed 4 years ago

breadbored commented 4 years ago

The ANU server has an SSL certificate that cannot be verified.

To fix this, I replaced urllib.open() with requests.get() so that I could use the verify=False flag. Without this flag the generator could not be fixed on our end without breaking other modules that require SSL (for example, pymongo).

This is working for me, hopefully it works for others.

ghuotvez commented 4 years ago

That fix works great for me, thanks!

breadbored commented 4 years ago

This is clearly not getting pulled, so I am maintaining a version of it myself at identex/quantumrand