17f430e EPN: Allow authentication by SMTP client's certificate

4 files Authored by slev 3 years ago, Committed by abbra 3 years ago,
    EPN: Allow authentication by SMTP client's certificate
    
    SMTP server may ask or require client's certificate for verification.
    To support this the underlying Python's functionality is used [0].
    
    Added 3 new options(corresponds to `load_cert_chain`):
    - smtp_client_cert - the path to a single file in PEM format containing the
      certificate.
    - smtp_client_key - the path to a file containing the private key in.
    - smtp_client_key_pass - the password for decrypting the private key.
    
    [0]: https://docs.python.org/3/library/ssl.html#ssl.SSLContext.load_cert_chain
    
    Fixes: https://pagure.io/freeipa/issue/8580
    Signed-off-by: Stanislav Levin <slev@altlinux.org>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    
        
file modified
+9 -0
file modified
+17 -0
file modified
+9 -0