When trying to apply the certificate to the Gateway the following error is returned:
The remote server returned and error: (401) Unauthorized
ITMS 8.x
Remove any redirects set on the server's Website (for example: https://servername.company.com/) in IIS.