Node error on Heroku instance: Unable to verify first certificate


Tyler Harden

I am trying to run an API provided via heroku. Currently I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I can't access the API using the node.js instance, I get the following error:

{ Error: unable to verify the first certificate
   at TLSSocket.<anonymous> (_tls_wrap.js:1062:38)
   at emitNone (events.js:86:13)
   at TLSSocket.emit (events.js:185:7)
   at TLSSocket._finishInit (_tls_wrap.js:586:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38) code: 
'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }

I've tried using the ssl-root-casmodule, but it doesn't seem to work on the heroku instance as it requires downloading the intermeidate certificate and restarting the server. However, restarting the heroku instance ssl-root-casonly loses the downloaded certificate. I also can't provide the SSL certificate directly from my node server. I need help with this issue, which I believe is the result of improper bundling of intermediate certificates.

Tyler Harden

The best and easiest way I've found to fix this is fullkey.pemwhen heroku asks for a certificate.

Related


Node error on Heroku instance: Unable to verify first certificate

Tyler Harden I am trying to run an API provided via heroku. Currently, I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I

Node error on Heroku instance: Unable to verify first certificate

Tyler Harden I am trying to run an API provided via heroku. Currently, I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I

Node error on Heroku instance: Unable to verify first certificate

Tyler Harden I am trying to run an API provided via heroku. Currently, I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I

Node error on Heroku instance: Unable to verify first certificate

Tyler Harden I am trying to run an API provided via heroku. Currently, I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I

Node error on Heroku instance: Unable to verify first certificate

Tyler Harden I am trying to run an API provided via heroku. Currently, I'm using SSL encryption and I've added it to the site via the panel domains and certificatesin the Settings page . While I can connect to the site on the browser using https and postman, I

Unable to verify first certificate in Node.js

Sideeq Youssef I have a Nodejs API which uses ssl and https, so I am trying to use it on another server to build a web application using express-js. I get the following error when making a GET request: events.js:141 throw er; // Unhandled 'error' event

Unable to verify first certificate in Node.js

Sideeq Youssef I have a Nodejs API which uses ssl and https, so I am trying to use it on another server to build a web application using express-js. I get the following error when making a GET request: events.js:141 throw er; // Unhandled 'error' event

request, error: Unable to verify first certificate

Mr D I want to make a simple POST HTTP request using the requestmodule : var request = require("request"); var form = {form: {some: "form", attributes: "attrs"}} request.post("https://example.com", form) .on('response', function(response) { if (response

request, error: Unable to verify first certificate

Mr D I want to make a simple POST HTTP request by using the requestmodule : var request = require("request"); var form = {form: {some: "form", attributes: "attrs"}} request.post("https://example.com", form) .on('response', function(response) { if (respo

request, error: Unable to verify first certificate

Mr D I want to make a simple POST HTTP request using the requestmodule : var request = require("request"); var form = {form: {some: "form", attributes: "attrs"}} request.post("https://example.com", form) .on('response', function(response) { if (response

request, error: Unable to verify first certificate

Mr D I want to make a simple POST HTTP request using the requestmodule : var request = require("request"); var form = {form: {some: "form", attributes: "attrs"}} request.post("https://example.com", form) .on('response', function(response) { if (response

request, error: Unable to verify first certificate

Mr D I want to make a simple POST HTTP request using the requestmodule : var request = require("request"); var form = {form: {some: "form", attributes: "attrs"}} request.post("https://example.com", form) .on('response', function(response) { if (response

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate

Chris Seymour I have a directory with certificate bundles, Python scripts and Node scripts. Both scripts make GET requests to the same URL and provide the same certificate bundle. The Python script makes the request as expected, but the node script throws this

Unable to verify first certificate in nodejs

Singh Why does this error occur? Can someone tell me what is the solution for this? If I create a new project using npm init command. UNABLE_TO_VERIFY_LEAF_SIGNATURE error on run Singh you can use this command npm config set strict-ssl false It just disables