Upload Webhook CA Certificate

POST {{URL}}/v1/certificates/webhooks/ca

If the Webhook URL as configured in the application settings uses an internal CA cert, you need to upload it to the WhatsApp Business API client so that it can be supported by the WhatsApp Business API. If you are using an externally known CA cert, you can safely skip this section.

You can generate a self-signed certificate in the PEM format by running:


openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem




The certificate file needs to be in the PEM format. If you have more than one certificate to upload, those certs should first be combined into a single file by concatenating them:

cat cert1.pem cert2.pem > bundle.pem

If a certificate already exists, it is overwritten. All Coreapp nodes must be restarted after uploading the certificate for the changes to take effect.

Response

If the request is successful, it returns null or {} .

HEADERS

| Key | Datatype | Required | Description | | Authorization | string | | | | Content-Type | string | | |

RESPONSES

status: ``