Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CA-Certificate validation error when cofiguring email via SMTPs #404

Closed
sudoleg opened this issue Feb 2, 2024 · 3 comments
Closed

CA-Certificate validation error when cofiguring email via SMTPs #404

sudoleg opened this issue Feb 2, 2024 · 3 comments

Comments

@sudoleg
Copy link
Contributor

sudoleg commented Feb 2, 2024

I installed PolicyReporter via a Helm Chart and am currently trying to send policy reports via email using smtps (encryption starttls). The logs of the "summary-report" Pod show this error at the end:

{"error": "Mail Error on STARTTLS: tls: failed to verify certificate: x509: certificate signed by unknown authority"}

The error message suggests that I have to install the CA certificates of my company. I tried to mount the certificate (.pem-file) under /etc/ssl/certs and /usr/local/share/ca-certificates but I still get the error. Any Ideas what I doing wrong?

thanks in advance :)

@fjogeleit
Copy link
Member

Hey, the email client configuration needs to be extended to be able to handle custom certificates. I'll take a look on it.

@fjogeleit
Copy link
Member

with the latest release you can configure your cert as extraVolume and configure the path in the SMTP settings as certificate.

@sudoleg
Copy link
Contributor Author

sudoleg commented Feb 5, 2024

Hey @fjogeleit , thank you for the veryquick response and fix! Unfortenately, the indentation seems to be wrong. I've fixed this in PR #407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants