Fixing issue with verify_certificate not passed down

* Credit to graffh for finding the bug