WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Extend configure_host to accommodate CA certificate authentication #198

@keberlin

Description

@keberlin

Would it be possible to extend the existing Connection::configure_host to allow a CA certificate file to be specified?

The extra code looks like this:

    if self.mail.use_tls:
        **# Change to support CA certificate authentication
        cafile = current_app.config.get("MAIL_CAFILE")
        context = ssl.create_default_context(cafile=cafile)**
        host.starttls(**context=context**)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions