Skip to content

Commit 460ffbf

Browse files
authored
corrige o erro: UNABLE_TO_GET_ISSUER_CERT_LOCALLY
1 parent 379ff8c commit 460ffbf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/factory/webservices/webserviceHelper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ export abstract class WebServiceHelper {
8585
const result: any = {
8686
url: soapParams.url,
8787
agentOptions: this.buildCertAgentOpt(cert),
88+
rejectUnauthorized: false,//add when working with https sites
89+
requestCert: false,//add when working with https sites
90+
agent: false,//add when working with https sites
8891
headers: {
8992
"Content-Type": "text/xml;charset=utf-8",
9093
"SOAPAction": soapParams.action
@@ -143,4 +146,4 @@ export abstract class WebServiceHelper {
143146
return result;
144147
}
145148
}
146-
}
149+
}

0 commit comments

Comments
 (0)