Unable to register HTTP error (401 - Unauthorized): authorized

Latest response

I'm unable to register new machine RH 8.1.
I can connect to redhat.com via browser, but when I try to register the system I get HTTP error:

[root@m64 ~]# subscription-manager  register 
Registering to: subscription.rhsm.redhat.com:443/subscription
Username: name@company.cz
Password: 
HTTP error (401 - Unauthorized): authorized

This is rhsm.log:

tail /var/log/rhsm/rhsm.log
    return self.conn.request_get(method)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 726, in request_get
    return self._request("GET", method, headers=headers)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 752, in _request
    info=info, headers=headers)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 627, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 689, in validateResponse
    raise RestlibException(response['status'], error_msg, response.get('headers'))
rhsm.connection.RestlibException: HTTP error (401 - Unauthorized): authorized

Thank you for your help.

Responses