[Zope] SSL-vars

Itamar Shtull-Trauring itamars@ibm.net
Mon, 27 Dec 1999 23:09:42 +0200


Ragnar Beer wrote:
> 
> Hi,
> 
> does anyone know how to find out the SSL keylength etc. with DTML
> (Apache 1.3.9 with mod_ssl under Linux, Zope 2.1.1 via pcgi)? I would
> e.g. like to display a warning when weak encryption is used by a
> client's browser.

mod_ssl sets a number of environment variables, which I assume should be
available in REQUEST.

See http://www.modssl.org/docs/2.4/ssl_reference.html#ToC25 for a list.  The
one you want is SSL_CIPHER_USEKEYSIZE, so try
REQUEST['SSL_CIPHER_USEKEYSIZE'].


-- 
Itamar S.T.  itamars@ibm.net