Implement Bad Cert Callback

Allows you to specify code to run when a SSL certificate fails validation.