Python Forum
Email, certificate verify failed: unable to get local issuer certificate - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Networking (https://python-forum.io/forum-12.html)
+--- Thread: Email, certificate verify failed: unable to get local issuer certificate (/thread-39380.html)



Email, certificate verify failed: unable to get local issuer certificate - SpongeB0B - Feb-08-2023

Hi everyone,

I'm trying to connect to my email provider with (extract)
from smtplib import SMTP_SSL

context = ssl.create_default_context()
context.minimum_version = ssl.TLSVersion.TLSv1_3
context.maximum_version = ssl.TLSVersion.TLSv1_3

with SMTP_SSL("provider.com", port=465, context=context) as smtpconn:
but I get
Error:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
This is under Windows with Python 3.8.3

Thanks.
FYI, under Linux( Devuan ) it work flawlessly