1
我有一個PFX文件。我生成PEM和KEY文件:SOAP請求和「錯誤:證書鏈中的自簽名證書」
openssl pkcs12 -in cert.pfx -out cert.pem -clcerts -nokeys
我進口他們這樣的:
soap.createClient(url, {wsdl_options: {
cert: fs.readFileSync('cert/certificate.pem'),
key: fs.readFileSync('cert/certificate.key')
}, wsdl_headers: {Authorization: auth}}, function(err, client) {
if(err) throw err;
client.describe();
});
但nodemon把我這個錯誤:
Error: self signed certificate in certificate chain
at Error (native)
at TLSSocket.<anonymous> (_tls_wrap.js:1060:38)
at emitNone (events.js:86:13)
at TLSSocket.emit (events.js:185:7)
at TLSSocket._finishInit (_tls_wrap.js:584:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:416:38)
我想我做了openssl certifacte生成器錯誤。