Avoid invalid certificate match