Python Forum

Full Version: Email, certificate verify failed: unable to get local issuer certificate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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