Get "Unauthorized: Invalid credentials for request" error while trying to register host to RHSM.
Issue
- Subscription manager returns the above error even if the correct credentials have been provided.
- The host is behind a http/https proxy server.
- The following curl command works but subscription manager not.
curl -v -k -u "<USERNAME>:<PASSWORD>" --proxy "<PROXY USERNAME>:<PROXY PASSWORD>@http://<PROXY HOSTNAME> :<PROXY PORT>" https://subscription.rhsm.redhat.com:443/subscription/users/<USERNAME>/owners
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
