Improved logging of missing certificate