Error when sending Confirmation Email on local machine

Order Confirmation Emails are not sent on my local machine.
I get an exception in MailServiceImpl.cs line 314

using (var myWebResponse = myWebRequest.GetResponse())
Exception:
2020-04-13 17:03:13.0478 [App:08] [6aa4fc3c-85d0-406f-acda-423935725def] [ERROR] [] Litium.Application.Scheduler.BackgroundJobEngine - Execution of background processor Litium.Application.Scheduler.BackgroundJobWorker, Litium.Application failed, executing again in 5 seconds. System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. —> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

We are using a self-signed certificate both locally and in the test environment.
Is there any way to get around this without having to switch to http?

Thanks in advance

Litium version: 7.4

The caller that is fetching the page content is inside the MailServiceImpl and you can update that code to have it’s own validation logic for the certificate validation, example https://stackoverflow.com/a/15121867

Perfect, this works. Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.