SSL Verification¶
Bigdata client verifies SSL certificates for HTTPS requests, just like a web browser. By default, SSL verification is enabled, and Bigdata client will throw a SSLError if it’s unable to verify the certificate.
Set up¶
You can set it up in two ways.
by setting
verify_ssl
parameter toTrue
orFalse
by setting
verify_ssl
parameter to path to certificate*.pem
file
Warning
By setting the verify parameter to False
, you instruct Python requests to skip SSL certificate verification.
While this can quickly resolve SSL errors, it’s important to note that it compromises the security of your
application by allowing potential man-in-the-middle attacks and therefore Bigdata.com does not recommend
it in production environments.
Example¶
Skip SSL verification:
from bigdata_client import Bigdata
bigdata = Bigdata(verify_ssl=False)
Or provide path to certificate file:
from bigdata_client import Bigdata
bigdata = Bigdata(verify_ssl="/path/to/certificate.pem")