It turned out, disabling the SSL certificate verification didn't work as expected.
We passed the right arguments to the requests package, but since we use
a custom SSL context, it couldn't turn off the verification entirely, because the
default SSL context has the check_hostname set to True and the documentation
says the following: "verify_mode is now automatically changed to CERT_REQUIRED
when hostname checking is enabled and verify_mode is CERT_NONE."
This commit adds an addition step which disables the hostname checking in our
custom SSL context.
It turned out, disabling the SSL certificate verification didn't work as expected. We passed the right arguments to the
requests
package, but since we use a custom SSL context, it couldn't turn off the verification entirely, because the default SSL context has thecheck_hostname
set toTrue
and the documentation says the following: "verify_mode
is now automatically changed toCERT_REQUIRED
when hostname checking is enabled andverify_mode
isCERT_NONE
." This commit adds an addition step which disables the hostname checking in our custom SSL context.Ref: https://github.com/IBM/python-sdk-core/issues/186