mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 02:57:09 +01:00
Adjusts to use a different loading of certificates and updates the docs for it
This commit is contained in:
parent
16adddc803
commit
df82ac8ac4
2 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue