证书链中的nodemailer错误自签名证书
nodemailer error self signed certificate in certificate chain
我的 gmail 帐户的应用程序状态也不太安全
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: worker_email,
pass: worker_pass
}
})
当我尝试时
transporter.sendEmail(options)
我收到一个错误:
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
at TLSSocket.emit (events.js:223:5)
at TLSSocket._finishInit (_tls_wrap.js:794:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) {
code: 'ESOCKET',
command: 'CONN'
}
请看这个简短的回答:
基本上,这可能与您的传输设置有关。
我的 gmail 帐户的应用程序状态也不太安全
const transporter = nodemailer.createTransport({
service: 'gmail',
auth: {
user: worker_email,
pass: worker_pass
}
})
当我尝试时
transporter.sendEmail(options)
我收到一个错误:
Error: self signed certificate in certificate chain
at TLSSocket.onConnectSecure (_tls_wrap.js:1321:34)
at TLSSocket.emit (events.js:223:5)
at TLSSocket._finishInit (_tls_wrap.js:794:8)
at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:608:12) {
code: 'ESOCKET',
command: 'CONN'
}
请看这个简短的回答:
基本上,这可能与您的传输设置有关。