Ensure cert exists before referencing it