Better error message on certificate problems.