pyweblib.sslenv
index
/home/michael/Proj/python/PyWebLib/pyweblib/sslenv.py

pyweblib.sslenv.py - retrieve SSL data from environment vars
(C) 1998-2015 by Michael Ströder <michael@stroeder.com>
 
This module is distributed under the terms of the
GPL (GNU GENERAL PUBLIC LICENSE) Version 2
(see http://www.gnu.org/copyleft/gpl.html)

 
Modules
       
os
re
string
sys

 
Functions
       
GetAllSSLEnviron(env=None)
Get all SSL-related environment vars and return mod_ssl
compatible dictionary.
 
mod_ssl compatible names are preferred. ApacheSSL names
are used as fallback.
PrintSecInfo(env, acceptedciphers, valid_dn_regex='', valid_idn_regex='', f=<open file '<stdout>', mode 'w'>)
Print the SSL data in HTML format
SecLevel(env, acceptedciphers, valid_dn_regex='', valid_idn_regex='')
Determine Security Level of SSL session.
 
Returns:
0  no SSL at all
1  SSL-connection and cipher used is in acceptedciphers
2  like 1 but client also has sent client certificate
   matching valid_dn_regex and valid_idn_regex.

 
Data
        __info__ = '$Id: pyweblib.sslenv.html,v 1.14 2015/01/10 14:40:54 michael Exp $'
__revision__ = '1.13'