node.js - 证书链中的nodemailer错误自签名证书
问题描述
我的 gmail 帐户也获得了 lesssecureapps 状态
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'
}
解决方案
请看这个简短的答案:https ://stackoverflow.com/a/64913747/5172977
基本上,它可能与您的传输设置有关。
推荐阅读
- python - 为什么 Python 在打开 utf-16 文件时不读取行尾字符?
- jquery - 带标签的滑块
- stripe-payments - 使用条带分离授权和捕获
- ios - 网络嗅探/SSL 固定:当使用 Fiddler 检测流量时,无法通过移动应用程序中的登录页面发布信息
- python - “如何将数据框中的对象列的持续时间(例如 2h 50m、8h 35m)转换为只有几分钟的日期时间列?”
- angular - Angular 2 - 承诺链 - 承诺不会被调用
- maven - 如何在 OSGI 包中嵌入外部 jar 依赖项?
- ruby-on-rails - 在 rails 上使用 postman ruby 为 current_user 创建记录
- angular - 如何在 Angular Ngrx 中管理即将到来的假期?
- javascript - 如何在uiwebview iOS目标c中从服务器打开html代码