Improving logging of certificate handling.