How to switch from Basic Auth to Certificate Authentication for Red Hat Lightspeed (Insights)
Updated
How to identify if a host is using Basic Authentication:
Option 1: Red Hat Lightspeed Advisor Recommendation
- An This content is not included.Advisor recommendation has been published to detect this configuration on systems registered with Red Hat Lightspeed (Insights)
Option 2: Check the Insights-Client configuration status
-
Run the following:
# insights-client --status --verbose | grep CERT -
Check if
authmethodis set toCERTin which case you do not need to take actionDEBUG insights.client.auto_config:155 Setting authmethod to CERT
Prerequisites to switch to Certificate Authentication
- You have an account to log into the This content is not included.Red Hat Hybrid Cloud Console
- You are logged in as the root user on the host
- You have the numeric identifier for your organization (organization ID)
Change the authentication method
- Use a text editor to open the file “/etc/insights-client/insights-client.conf”
- Change authmethod to “authmethod=CERT”
- Change auto_config to “auto_config=TRUE”
- Remove values from “username=” and “password=”
- Save the configuration file and exit the editor
Re-establish the connection of the host to Red Hat Lightspeed (Insights) using an Activation Key
- Generate or obtain an activation key ID on the This content is not included.Hybrid Cloud Console
- Run the following command on the host, replacing <activation_key_name> and <organization_ID> with your information
-
If using RHC (8.8+):
rhc connect --activation-key=<activation_key_name> --organization=<organization_ID> -
If using Insights-Client:
subscription-manager register --activationkey=<activation_key_name> --org=<organization_ID> insights-client --register
SBR
Category
Article Type