Hey guys,
I'm having some problems verifying the subscribers endpoint. It works fine when I test it directly on the browser (returns 204 or 404 correctly).
Https is running on port 8888 so I set the endpoint as https://<my_url>:8888/fitbit/webhook . My certificate is from DigiCert.
Any help would be appreciated.
Thanks!
Answered! Go to the Best Answer.
Best AnswerI just solved it adding the "ca" to the options object, so it looks like:
var options = {
key: fs.readFileSync('path_to_file.key'),
cert: fs.readFileSync('path_to_cert_file.crt'),
ca: fs.readFileSync('path_to_ca_file.crt'),
};
I just solved it adding the "ca" to the options object, so it looks like:
var options = {
key: fs.readFileSync('path_to_file.key'),
cert: fs.readFileSync('path_to_cert_file.crt'),
ca: fs.readFileSync('path_to_ca_file.crt'),
};