Skip to content

Commit

Permalink
Update Konnect curl request in renew-certificates.md
Browse files Browse the repository at this point in the history
- needed to add double-quotes to properly expand $CERT envvar (curl was giving an error)
- Included the Authorization header in the Konnect request
  • Loading branch information
gforns authored Nov 14, 2023
1 parent ae300d6 commit fe7258b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ You can generate a certificate locally and use the [pin data plane client certif
1. `POST` the certificate to your control plane using the Konnect API:

```bash
curl https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/dp-client-certificates --json '{"cert":"'$CERT'"}'
curl https://{region}.api.konghq.com/v2/control-planes/{controlPlaneId}/dp-client-certificates --json '{"cert":"'"$CERT"'"}' \
--header "Authorization: Bearer ${KONNECT_TOKEN}"
```
{% endnavtab %}
{% endnavtabs %}
Expand Down

0 comments on commit fe7258b

Please sign in to comment.