> For the complete documentation index, see [llms.txt](https://doc.peeringhub.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.peeringhub.io/guides/integration/bandwidth/common-bandwidth-error.md).

# Common Bandwidth Error

### Error #1: BAD\_REQUEST: Unsupported private key format

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

When you get this error, you need to convert your private key using the following command:

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

### ERROR #2: BAD\_REQUEST: No Chain of Trust to CA

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

You need to append Peeringhub's CA certificate to the end to .cer or .crt file.  Here is Peeringhub's CA certificate:

```
-----BEGIN CERTIFICATE-----
MIICEDCCAbWgAwIBAgIJAJZM3gWl52yeMAoGCCqGSM49BAMCMGsxCzAJBgNVBAYT
AlVTMRcwFQYDVQQKDA5QZWVyaW5naHViIEluYzEiMCAGA1UECwwZQ2VydGlmaWNh
dGlvbiBBdXRob3JpdGllczEfMB0GA1UEAwwWUGVlcmluZ2h1YiBJbmMgUm9vdCBD
QTAeFw0yMDEyMTcxNTMxMDRaFw00MDEyMTIxNTMxMDRaMGsxCzAJBgNVBAYTAlVT
MRcwFQYDVQQKDA5QZWVyaW5naHViIEluYzEiMCAGA1UECwwZQ2VydGlmaWNhdGlv
biBBdXRob3JpdGllczEfMB0GA1UEAwwWUGVlcmluZ2h1YiBJbmMgUm9vdCBDQTBZ
MBMGByqGSM49AgEGCCqGSM49AwEHA0IABOnrCNZEAlQT3yv/Z2pcR/NtTuNf7k3p
jojYhYvA83uMCzdu9KlG+LdDwFcioZPF027ks4CaeenplBMGhNMkVnajQjBAMA4G
A1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQc6aJG/+sT
GtSS54L0Yo7+BaJ/zzAKBggqhkjOPQQDAgNJADBGAiEA/rriu3nwg8fan3oUiIA+
12PM+zuj6XfE7Ay92wNItTwCIQCrkOhIJG0L2Mg/wpDJPTWO4gaTpGqYbdexFlsi
nEAaFg==
-----END CERTIFICATE-----

```
