Error using subscription manager
I'm getting the following error when trying to subscribe a system
A colleague had a look and said "Connection failed on http Certificate error on https. And after overriding the certificate error on https I get a status 404
Safari on Mac says the certificate is "not standards compliant" so it looks to me like the certificate problem is on their side."
Any thoughts?
subscription-manager register --username=XXX --password=XXX --force --auto-attach
Unregistering from: subscription.rhsm.redhat.com:443/subscription
Network error. Please check the connection details, or see /var/log/rhsm/rhsm.log for more information.
2022-04-25 10:37:00,860 [ERROR] subscription-manager:1673:MainThread @connection.py:793 - Response: 400
2022-04-25 10:37:00,860 [ERROR] subscription-manager:1673:MainThread @connection.py:794 - JSON parsing error: Expecting value: line 1 column 1 (char 0)
2022-04-25 10:37:00,860 [ERROR] subscription-manager:1673:MainThread @managercli.py:218 - Unregister failed
2022-04-25 10:37:00,860 [ERROR] subscription-manager:1673:MainThread @managercli.py:219 - HTTP error (400 - Bad Request)
Traceback (most recent call last):
File "/usr/lib64/python3.6/site-packages/subscription_manager/managercli.py", line 1547, in _do_command
unregister.UnregisterService(self.cp).unregister()
File "/usr/lib64/python3.6/site-packages/rhsmlib/services/unregister.py", line 54, in unregister
self.uep.unregisterConsumer(self.identity.uuid)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 1322, in unregisterConsumer
return self.conn.request_delete(method)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 892, in request_delete
return self._request("DELETE", method, params, headers=headers)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 906, in _request
info=info, headers=headers, cert_key_pairs=cert_key_pairs)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 765, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python3.6/site-packages/rhsm/connection.py", line 863, in validateResponse
raise NetworkException(response['status'])
rhsm.connection.NetworkException: HTTP error (400 - Bad Request)