I have a node app using the soap module, node-soap. I am creating a soap 
client using a URL. On the mentioned URL, there is a self signed 
certificate and it is causing a [Error: DEPTH_ZERO_SELF_SIGNED_CERT]. I am 
not finding much on this but is there is any setting I can tweak for this 
client to get around this error?

My code is the following:

var url3 = "https://172.31.19.39/MgmtServer.wsdl";;
var args3 = { "user": "admin-priv", "password":"password"};
soap.createClient(url3, function(err, client) {

    if (err) {
        console.error(err);
        return;
    }

    console.log(client.describe().MgmtServer.MgmtServer.mgmtValidatePassword);
    client.MgmtServer.MgmtServer.mgmtValidatePassword(args3, function(err, 
result) {

        if (err) {
            console.error(err);
            return;
        }

        console.log(result);
    });});

the output is [Error: DEPTH_ZERO_SELF_SIGNED_CERT] [Error: 
DEPTH_ZERO_SELF_SIGNED_CERT]

Any way to deal with this? the certificate is a valid, not expired, self 
signed certificate

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nodejs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to