Unable to cancel authorization when server certificate changes