self signed certificate in certificate chain node code example
Example 1: node tls reject unauthorized
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;
Example 2: nodemail self signed certificate in certificate chain
var transporter = nodemailer.createTransport({
host: "outmail.abc.co.th", // hostname
secure: false, // use SSL
port: 25, // port for secure SMTP
auth: {
user: "[email protected]",
pass: "passwordmail"
},
tls: {
rejectUnauthorized: false
}
});