Module nixio.TLSContext
Transport Layer Security Context Object.
Functions
| create (socket) | Create a TLS Socket from a socket descriptor. | 
| set_cert (path) | Assign a PEM certificate to this context. | 
| set_key (path) | Assign a PEM private key to this context. | 
| set_ciphers (cipherlist) | Set the available ciphers for this context. | 
| set_verify_depth (depth) | Set the verification depth of this context. | 
| set_verify (flag1, ...) | Set the verification flags of this context. | 
Functions
- create (socket)
 - 
    Create a TLS Socket from a socket descriptor.
    
Parameters:
- socket Socket Object
 
Returns:
- 
        TLSSocket Object
    
 
 - set_cert (path)
 - 
    Assign a PEM certificate to this context.
    
Parameters:
- path Certificate File path
 
Returns:
- 
        true
    
 
Usage:
This function calls SSL_CTX_use_certificate_chain_file().
 - set_key (path)
 - 
    Assign a PEM private key to this context.
    
Parameters:
- path Private Key File path
 
Returns:
- 
        true
    
 
Usage:
This function calls SSL_CTX_use_PrivateKey_file().
 - set_ciphers (cipherlist)
 - 
    Set the available ciphers for this context.
    
Parameters:
- cipherlist String containing a list of ciphers
 
Returns:
- 
        true
    
 
Usage:
This function calls SSL_CTX_set_cipher_list().
 - set_verify_depth (depth)
 - 
    Set the verification depth of this context.
    
Parameters:
- depth Depth
 
Returns:
- 
        true
    
 
Usage:
This function calls SSL_CTX_set_verify_depth().
 - set_verify (flag1, ...)
 - 
    Set the verification flags of this context.
    
Parameters:
- flag1 First Flag ["none", "peer", "verify_fail_if_no_peer_cert", "client_once"]
 - ... More Flags [-"-]
 
Returns:
- 
        true
    
 
Usage:
This function calls SSL_CTX_set_verify().