I am trying to use node-libcurl module in my protractor project but I am getting the error :
Failed: SSL peer certificate or SSH remote key was not OK
const {curly} = require('node-libcurl')
const { data } = await curly.post('https://www.example.com', {
postFields: JSON.stringify({"name":"rak"}),
httpHeader: [
'Content-Type: application/json',
'Accept: application/json',
'Access-Control-Allow-Origin : *'
],
})
How to get rid of this error .
From the COMMON_ISSUES.md file on the project's repository: