Removed extra debug messages
Added a certificate callback