If you at registration of new servers encounter 500 Internal Server Error on a newly installed Red Hat Satellite 6.2.2. Like such:

[foreman-tasks/action] [E] 500 Internal Server Error (RestClient::InternalServerError)

Try running:

pulp-gen-ca-certificate
katello-service restart

And try again.