Corrected 'check_cert' template