# 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="https://1192060387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOvmS2vTTpoK9MGsX2ojy%2Fuploads%2FVsxgdcDJW5KMXrhdExe2%2Fimage.png?alt=media&#x26;token=a9bbd7ca-1846-41eb-abad-4d542bbf1c05" 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**.
