Certificate validation fails for certificates with IP as common name