Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend configure_host to accommodate CA certificate authentication #198

Open
keberlin opened this issue Nov 9, 2022 · 0 comments
Open

Comments

@keberlin
Copy link

keberlin commented Nov 9, 2022

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**)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant