kutt icon indicating copy to clipboard operation
kutt copied to clipboard

Add "ignore cert trust" as param in .env

Open V1TA5 opened this issue 5 years ago • 2 comments

please add something along the lines of: tls: {rejectUnauthorized: process.env.MAIL_CHECKCERT === "true",}

To mail.js nodemailer transport. My cert doesnt match the internal ips or internal domain when acc the mail server from within LAN. A direct smtp send without auth would be good too.

THX

V1TA5 avatar Nov 20 '19 10:11 V1TA5

I think it would be better to add an env var to NOT check certs, instead of making it required, checking should be the default, env var to disable would be the option.

trgwii avatar Dec 20 '19 11:12 trgwii

For the PostgreSQL connection it's similar. Even after patchingknexfile.ts with ssl: { rejectUnauthorized: false } it fails with: image

(sorry for the image! I don't have it as text anymore)

djboris9 avatar Feb 17 '22 14:02 djboris9