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

  1. 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

  1. Run the following:

    # insights-client --status --verbose | grep CERT
    
  2. Check if authmethod is set to CERT in which case you do not need to take action

    DEBUG insights.client.auto_config:155 Setting authmethod to CERT
    

Prerequisites to switch to Certificate Authentication

Change the authentication method

  1. Use a text editor to open the file “/etc/insights-client/insights-client.conf”
  2. Change authmethod to “authmethod=CERT”
  3. Change auto_config to “auto_config=TRUE”
  4. Remove values from “username=” and “password=”
  5. Save the configuration file and exit the editor

Re-establish the connection of the host to Red Hat Lightspeed (Insights) using an Activation Key

  1. Generate or obtain an activation key ID on the This content is not included.Hybrid Cloud Console
  2. 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