mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-28 18:24:38 -05:00
Adjusts to use a different loading of certificates and updates the docs for it
This commit is contained in:
@@ -397,7 +397,7 @@ def get_mailbox(server, port, security) -> MailBox:
|
||||
"""
|
||||
ssl_context = ssl.create_default_context()
|
||||
if settings.EMAIL_CERTIFICATE_FILE is not None: # pragma: nocover
|
||||
ssl_context.load_cert_chain(certfile=settings.EMAIL_CERTIFICATE_FILE)
|
||||
ssl_context.load_verify_locations(cafile=settings.EMAIL_CERTIFICATE_FILE)
|
||||
|
||||
if security == MailAccount.ImapSecurity.NONE:
|
||||
mailbox = MailBoxUnencrypted(server, port)
|
||||
|
Reference in New Issue
Block a user