Skip to content

TypeError: IMAPClient.__init__() got an unexpected keyword argument 'tls' #7

@HakkenSD

Description

@HakkenSD

Hello.
Faced a problem. The mail server I am using works with ssl\tls.
In line server = IMAPClient(host=imap4_server, use_uid=True,ssl=True) I add ssl=True
During the test run, everything works. But I make a docker image and run it on a docker host. I am getting the following error:
caused error "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:992)"
Please let me know if you have any ideas how to fix this. I will be grateful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions