Registering host to Red Hat Satellite 6 using Global Registration Template fails with ERROR: unauthorized

Solution Verified - Updated -

Issue

  • Registering a host to the Red Hat Satellite server using curl command generated using Global Registration Template method fails with below error:

    # set -o pipefail && curl -sS  'https://capsule.exampe.com:9090/register? activation_keys=Prod_9&hostgroup_id=4&location_id=2&operatingsystem_id=34&organization_id=1&update_packages=false' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo4LCJpYXQiOjE3NTI0NTc3NDYsImp0aSI6IjBlMDkxZTY1NzJjYjBiYmQ2OThhYzQ5ZGFlNTk5Yjk0N2Q4OTUyNzFjZTJlOWY5NTAxZjMxNGRiMmExMjFjOWIi    LCJleHAiOjE3NTI0NzIxNDYsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.C8ladK0cJ02C2gFmoH_m3ncD5pXOhnPsrfCqw6DALVY' | bash
    ERROR: unauthorized
    JWT SSO: Expired JWT token.
    

Environment

  • Red Hat Satellite 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content