python-consul
python-consul copied to clipboard
Documentation: Consul "verify" parameter
The consul.Consul constructor accepts parameter verify, which is subsequently passed in requests.get calls. This is documented as "verify is whether to verify the SSL certificate for HTTPS requests". This caused me some grief until I tracked it through to the requests module, where the documentation indicates that it is more generic. Specifically, pass False to suppress validation, or "the path to a CA_BUNDLE file or directory with certificates of trusted CAs" to perform validation.
See http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification for details with examples.
So, if I understand correctly (always a question), verify is the server cert to validate the server against.