# Bandwidth

The following screenshot is from the **Bandwidth** platform.\
To complete the integration, download the **Private Key** from your **Peeringhub.io** portal and upload it to the location shown.

For the **Certificate**, copy the **CRL link** from the Certificate page in your Peeringhub.io portal and paste it into your browser to download the certificate file.

You can download the Private Key directly from the **Private Key** page within your Peeringhub.io portal.

<figure><img src="/files/IHTFU7ByfrUWwCu4Oojp" alt=""><figcaption></figcaption></figure>

## How to Convert Your STIR/SHAKEN Private Key and Certificate for Bandwidth

### Requirements

* **OpenSSL** installed on your computer.
* **Intermediate CA Certificate (save as `peeringhub_intermediate.crt`):**

  ```
  -----BEGIN CERTIFICATE-----
  MIICEDCCAbWgAwIBAgIJAJZM3gWl52yeMAoGCCqGSM49BAMCMGsxCzAJBgNVBAYT
  AlVTMRcwFQYDVQQKDA5QZWVyaW5naHViIEluYzEiMCAGA1UECwwZQ2VydGlmaWNh
  dGlvbiBBdXRob3JpdGllczEfMB0GA1UEAwwWUGVlcmluZ2h1YiBJbmMgUm9vdCBD
  QTAeFw0yMDEyMTcxNTMxMDRaFw00MDEyMTIxNTMxMDRaMGsxCzAJBgNVBAYTAlVT
  MRcwFQYDVQQKDA5QZWVyaW5naHViIEluYzEiMCAGA1UECwwZQ2VydGlmaWNhdGlv
  biBBdXRob3JpdGllczEfMB0GA1UEAwwWUGVlcmluZ2h1YiBJbmMgUm9vdCBDQTBZ
  MBMG
  ```

### Step 1: Convert the Private Key

1. Open a terminal or command prompt.
2. Run the following command:

```bash
openssl ec -in stir_private_key.pem -out stir_private_key-fixed.pem -param_enc named_curve
```

**Explanation:**

* `stir_private_key.pem` → This is the original key you downloaded from **PeeringHub**.
* `stir_private_key-fixed.pem` → This is the new, fixed key that OpenSSL will generate.

3. After running the command, you will have a new key file: `stir_private_key-fixed.pem`.
4. Upload this fixed key to the **Bandwidth portal**.

### Step 2: Prepare the Certificate

1. The PeeringHub certificate is `.crt`. Rename it to `.cer`:

```
stir_certificate.crt → stir_certificate.cer
```

2. **Append the Intermediate CA to your certificate**:

```bash
cat peeringhub_intermediate.crt >> stir_certificate.cer
```

> This combines your certificate with PeeringHub’s Intermediate CA, which Bandwidth requires.

3. Upload the updated `stir_certificate.cer` to the **Bandwidth portal**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.peeringhub.io/guides/integration/bandwidth.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
