Fix certificate verification error when set to False

Fixes #1155192