# 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-----

```


---

# 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/common-bandwidth-error.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.
