-
-
Save carlozamagni/2be64d8864c12106d7eea7c4b98feeb2 to your computer and use it in GitHub Desktop.
Accessing a SOAP web service which requires a client certificate using node-soap 0.4.3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var soap = require('soap'), | |
fs = require('fs'); | |
client = soap.createClient('https://some-webserv.ic/something.wsdl', { | |
wsdl_options: { | |
cert: fs.readFileSync('cert.pem'), | |
key: fs.readFileSync('keyfile.key') | |
} | |
}, function(err, client){ | |
console.log(client.describe()); | |
}) | |
// Note: the keyfile should not be secured with a passphrase |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment