您的位置:首页 > Web前端 > Node.js

UNABLE_TO_VERIFY_LEAF_SIGNATURE

2016-09-07 14:58 447 查看
使用nodemailer的时候,遇到一个问题,{ [Error: unable to verify the first certificate] code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' }解决方法是在
nodemailer.createTransport的参数对象里面加上,
tls: {rejectUnauthorized: false}

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  nodemailer