I would like to use https://www.npmjs.com/package/maildev
for testing outgoing emails. When setting MAIL_URL=smtp://:@localhost:1025
and sending an email I got “Error: self signed certificate”. Is there a way to skip the certificate verification for testing purposes?
For anyone else stumbling on this post having this issue, the following worked for me:
if (Meteor.isDevelopment){
process.env.NODE_TLS_REJECT_UNAUTHORIZED = 0;
}
2 Likes