Webhook not working when using self signed certificates in chain.
Describe the bug
When using self-signed certificates in the chain the webhook is not working.
I already tried to add my CA cert to `/usr/local/share/ca-certificates` directory and using `update-ca-certificates` to update it, and tried to add it manually to `/etc/ssl/certs/ca-certificates.crt` but that didn't help.

To Reproduce
Setup a webserver or api endpoint using SSL with a self-signed certificate, activate the webhook in camera.ui.

Expected behavior
Working Webhook.

Logs

[2/3/2022, 2:00:11 PM] [CameraUI] VIDEOANALYSIS: New message: Data: [{"zone":"region0","percent":83.41078186035156,"sensitivity":18,"dwell":60,"forceClose":3}] - Motion: detected - Camera: Hallway
[2/3/2022, 2:00:11 PM] [CameraUI] Hallway: Motion ON
[2/3/2022, 2:00:11 PM] [CameraUI] Hallway: An error occured during sending webhook notification
[2/3/2022, 2:00:11 PM] [CameraUI] RequestError: unable to verify the first certificate
[2/3/2022, 2:00:12 PM] [CameraUI] Hallway: Motion OFF - Motion handler timeout.

Screenshots

Environment

Node.js Version: v16.13.2
Homebridge Version: v1.4.0 (HAP v0.10.0)
Camera UI Version: v5.0.16-latest
Operating System: Debian 10 with Docker Alpine Linux (3.12.9)
Browser Version: Edge 97.0.1072.76 (Official build) (64-bit) on Windows 11