Bug #6539
Option to avoid checking https certificate correctness
0%
Description
In development environment we may not have valid ssl certificates, it would be nice in that situation if ssl checks could be turned off in authentic.
Fichiers
Révisions associées
misc: add a settings option to disable https ssl checks (#6539)
Historique
Mis à jour par Frédéric Péters il y a environ 9 ans
- Fichier 0001-misc-raise-an-urllib2.HTTPError-if-get_url-returns-a.patch 0001-misc-raise-an-urllib2.HTTPError-if-get_url-returns-a.patch ajouté
- Fichier 0002-misc-add-a-settings-option-to-disable-https-ssl-chec.patch ajouté
- Patch proposed changé de Non à Oui
The first patch enhances get_pycurl_url() to raise an error on http error codes (much like the non-http code path of urllib2 does); the second patch adds an option to not verify certificates.
Mis à jour par Thomas Noël il y a environ 9 ans
Ack pour moi, mais validation finale par Benj si possible.
Mis à jour par Frédéric Péters il y a environ 9 ans
Mis à jour par Frédéric Péters il y a environ 9 ans
- Fichier
0002-misc-add-a-settings-option-to-disable-https-ssl-chec.patchsupprimé
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
Je ne sais pas à que point c'est pressé mais je verrai bien d'enlever le module authentic2.http_utils pour n'utiliser que requests à la place, et simplement faire des requests.get(url, verify=app_settings.A2_VERIFY_SSL)
là où c'est nécessaire. Dans l'interim ces deux patchs sont nickels.
Mis à jour par Frédéric Péters il y a environ 9 ans
- Statut changé de Nouveau à Résolu (à déployer)
Thanks, I'll thus push those now, and leave the switch to python-requests for another one (I'll open a ticket about that).
Mis à jour par Benjamin Dauvergne il y a environ 9 ans
- Statut changé de Résolu (à déployer) à Fermé
misc: raise an urllib2.HTTPError if get_url returns a non 200 response (#6539)