Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems verifying subscriber endpoint

ANSWERED

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!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

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'),
};

View best answer in original post

Best Answer
1 REPLY 1

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'),
};
Best Answer