title: Calling a SOAP service requiring certificate using Nodejs
body: <p>Nodejs SOAP client throwing error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames:</p>
  
  <p>I am trying to call a SOAP service using <a href="https://www.npmjs.com/package/soap]" rel="nofollow noreferrer">soap</a> in nodejs. However I am getting error <strong>[ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: IP: XXX.XXX.XXX.XXX is not in the cert's list:</strong>. I am new to nodejs and not sure how to call a SOAP service which requires certificate from nodejs. Other ways to call SOAP services requiring certificates in Nodejs are also welcome.</p>
  
  <pre><code>var url = "https://soapserviceurl?wsdl";
  
  soap.createClient(url, function (err, client) { 
      if (err) {
          console.log("Error Occurred!!");
          console.log(err);       
      }
      else {
          console.log(client.describe());
      }
  });
  </code></pre>