ha-email-sensor icon indicating copy to clipboard operation
ha-email-sensor copied to clipboard

Self signed certificates are not accepted

Open NODeeJay opened this issue 2 years ago • 3 comments

When I try to connect to my MS Exchange with self signed certificate it fails with

email: Error on device update!
[...]
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate (_ssl.c:997)

Config:

- platform: email
  email: alex@<beep>.net
  password: <beep>
  imap_server: mail.<beep>.net
  imap_port: 993
  folder: ebay
  days_old: 5
  ssl: true

I tried without SSL, but then it seems TLS is epected. Is there an option to ignore a self signed certificate?

NODeeJay avatar Feb 05 '23 00:02 NODeeJay

Have you tried imap_port: 587 ?

CaptainKarma avatar Feb 21 '23 21:02 CaptainKarma

It's my own mailserver and running a self signed certificate as I use IMAP only internally. I did not enable port 587.

NODeeJay avatar Mar 02 '23 21:03 NODeeJay

I took the opportunity to reconfigure the acme script to install the letsencrypt certificate also for the internal IMAP service, which fixed the symptom but not the issue. For me it's resolved but you may want to consider a setting to allow untrusted certs in future?

NODeeJay avatar Mar 05 '23 01:03 NODeeJay