BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
fix(certificate): return certificate info and error on file check failure
lotk9959be88c2b0
diff --git a/core/internal/service/mail_service/certificate.go b/core/internal/service/mail_service/certificate.goindex c1f44264..0e0a4a85 100644--- a/core/internal/service/mail_service/certificate.go+++ b/core/internal/service/mail_service/certificate.go@@ -532,12 +532,12 @@ func (c *Certificate) getSSLInfoFromFiles(domain string) (certInfo v1.CertInfo,if !c.checkCertificateFiles(csrPath, keyPath) {err = fmt.Errorf("certificate files do not exist")- return+ return certInfo,err}crtPem, err := public.ReadFile(csrPath)if err != nil {- return+ return certInfo,err}// Get certificate information@@ -547,7 +547,7 @@ func (c *Certificate) getSSLInfoFromFiles(domain string) (certInfo v1.CertInfo,certInfo.CertPem = crtPemcertInfo.KeyPem, err = public.ReadFile(keyPath)if err != nil {- return+ return certInfo,err}}