I have a service in node which makes a POST request to a RESTful API end point to save some data. I'm using the request
npm module to make POST request and i have URL, METHOD, HEADERS, request body (json in this case). When i start the node server i get this error { [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
, Tried googling around the issue and could not find any workable solution so far. I'm running everything behind a proxy.
Is it something related to SSL if so what would be the optimal solution for this one? My node version is v5.6.0.