Remove duplication for certificate redirection