---
title: "How can I regenerate the Content Hub Shared Secret?"
date: "2025-04-03T06:57:13+00:00"
summary: "Learn how to regenerate and update the Content Hub Shared Secret using Drush commands for secure site connections."
image:
type: "article"
url: "/drupal-starter-kits/add-ons/content-hub/help/66291-how-can-i-regenerate-content-hub-shared-secret"
id: "40bf545a-45f4-4fcb-8205-7addaa947da8"
---

Complete the following steps:

1.  Generate a new shared secret with the following [Drush](https://docs.acquia.com/contenthub/drush-d9/#acquia-contenthub-regenerate-secret) command:
    
        drush -l <site url> acquia-contenthub-regenerate-secret
    
    This must be done only once from any site that is connected to Content Hub.
    
2.  Update each of your sites connected to Content Hub with the new shared secret.
    
    *   If you have added the shared secret to your code, you must update that code.
        
    *   If you have not enforced the shared secret in code, you can run the following [Drush](https://docs.acquia.com/contenthub/drush-d9/#acquia-contenthub-update-secret) command for each site:
        
            drush -l <site url> acquia-contenthub-update-secret