node.js – Basic Node-soap client authentication failed

I receive this error:
Fault [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname / IP does not match the version names of the certificate

Here is my code:

var soap = require (& # 39; soap & # 39;);
var url = & # 39; your WSDL URL & # 39 ;;
var auth = "Basic" + new buffer ("your username" + ":" + "your password"). toString ("base64");

soap.createClient (url, {wsdl_headers: {Authorization: auth}}, function (err, client) {
client.setSecurity (new soap.BasicAuthSecurity (your user name & # 39; your password & # 39;));
client.your function (arguments, function (error, result) {
if (err) {
console.log (& # 39; Error: & # 39 ;, err);
}
other {
console.log ('Result:', result);
}
});

Should not ask me for certification because it is a basic authentication. Any help would be greatly appreciated!