Tidy up certificate detail handling.