Wrong certificate used