> ## Documentation Index
> Fetch the complete documentation index at: https://bloodhound.specterops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Renew an AzureHound Certificate

> Replace an expiring certificate used by AzureHound Enterprise on Windows.

![Applies to BloodHound Enterprise only](https://mintcdn.com/specterops/tTIczgde9H07oLXf/assets/enterprise-edition-pill-tag.svg?fit=max\&auto=format\&n=tTIczgde9H07oLXf\&q=85\&s=b682a26b342bde12302ec829e265bdb6)

Rotate the certificate AzureHound Enterprise uses to authenticate to Microsoft Entra ID. AzureHound-generated certificates expire after one year.

## Prerequisites

Before you begin, ensure you have the following:

* On the AzureHound Enterprise server:
  * Permission to stop and start the AzureHound Enterprise service
  * Permission to replace the existing AzureHound Enterprise certificate and key
* In Microsoft Entra ID, permission to add/replace the certificate on the AzureHound Enterprise application

You must use AzureHound's `configuration` command to generate new certificate and key files.

**1. Stop the AzureHound service**

**2. Identify the certificate and key locations**

1. Open AzureHound's `config.json` file, typically at `C:\ProgramData\azurehound\config.json`.
2. Expected locations are listed in the `cert` and `key` values.

**3. Generate a new certificate and key**

1. Run the following command to start the AzureHound configuration process:

   ```cmd theme={null}
   azurehound.exe configure
   ```

2. Run the configuration in full. Use the existing `config.json` file as a reference when inputting values, like **Directory ID**.

3. Choose **Authentication Method: Certificate**, and set an optional **Private Key Passphrase**.

4. The terminal prints the paths of the new certificate and private key, together with a new `config.json` file.

**4. Delete the new config.json file**

**5. Move the new certificate and key**

Move the new certificate and private key into the locations referenced by the old `config.json` file.

If you set a private key passphrase, you must add it to the `config.json` file.

**6. Add the certificate to the Azure application**

See [AzureHound Enterprise Configuration](https://bloodhound.specterops.io/install-data-collector/install-azurehound/azure-configuration.md#certificate) for details.

**7. Start the AzureHound service**
