David_G__33241
Sep 11, 2017Nimbostratus
unable to verify the first certificate with node.js
I am trying to read a datagroup using node.js and am receiving the message "unable to verify the first certificate".
I have confirmed the command manually with curl and it does return the datagroup as expected:
curl -sk -uadmin:admin -v https://127.0.0.1/mgmt/tm/ltm/data-group/internal/~acc~dgroup
result: …"records":[{"name":"test","data":"test"}]
f5_data_group.js has the following
var bigip = new iControl({
host: '127.0.0.1',
proto: 'https',
port: '443',
username: 'admin',
pass: 'admin',
strict: 'false',
debug: 'true'
});
var dgPath = '/ltm/data-group/internal/~acc~dgroup';
exports.getDataGroup = function(callback) {
bigip.list(dgPath, function(err, res) {
console.log( 'bigip.list dgPath:',dgPath,'err:',err);
callback(res);
});
};
Console.log is giving the following message:
plugin[/acc/f5_mfa_plugin.f5_mfa_extension] bigip.list dgPath: /ltm/data-group/internal/~acc~dgroup err: { [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }
I assume it might have to do with using self signed certificate on the big-ip however strict is set to false above.
Any suggestions?
APM 12.1.2