opensearch-project / reporting-cli

Apache License 2.0
4 stars 13 forks source link

[BUG] Error sending emailError: self signed certificate #31

Closed 51CGO closed 1 year ago

51CGO commented 1 year ago

What is the bug?

It seems that if the SMTP server uses self-signed certificate, reporting-cli refuses to send the message:

The report is downloaded Error sending emailError: self signed certificate

How can one reproduce the bug?

Use reporting to generate a report and send it to an SMTP server that uses a slef-signed certificate.

What is the expected behavior?

There should be an argument to bypass this check. Many companies uses self-signed certificates so they won't be able to use the mail functionality.

What is your host/environment?

RHEL8

Do you have any screenshots?

N/A

Do you have any additional context?

N/A

Fix

For my needs, I made this patch but there should be a command-line option to enable this behaviour. email-helpers.js.patch