369N/A This Apache module provides strong cryptography for the Apache 2.0 webserver
369N/A via the Secure Sockets Layer (SSL
v2/v3) and Transport Layer Security (TLS
369N/A v1) protocols by the help of the
SSL/TLS implementation library OpenSSL which
369N/A is based on SSLeay from Eric A. Young and Tim J. Hudson. The mod_ssl package
369N/A was created in April 1998 by Ralf S. Engelschall and was originally derived
369N/A from software developed by Ben Laurie for use in the Apache-SSL HTTP server
369N/A See the top-level LAYOUT file in httpd-2.0 for file descriptions.
369N/A The source files are written in clean ANSI C and pass the ``gcc -O -g
369N/A -ggdb3 -Wall -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes
369N/A -Wmissing-declarations -Wnested-externs -Winline'' compiler test
369N/A (assuming `gcc' is GCC 2.95.2 or newer) without any complains. When
369N/A you make changes or additions make sure the source still passes this
369N/A Inside the source code you will be confronted with the following types of
369N/A functions which can be identified by their prefixes:
369N/A ap_xxxx() ............... Apache API function
369N/A ssl_xxxx() .............. mod_ssl function
844N/A SSL_xxxx() .............. OpenSSL function (SSL library)
844N/A OpenSSL_xxxx() .......... OpenSSL function (SSL library)
369N/A X509_xxxx() ............. OpenSSL function (Crypto library)
369N/A PEM_xxxx() .............. OpenSSL function (Crypto library)
369N/A EVP_xxxx() .............. OpenSSL function (Crypto library)
369N/A RSA_xxxx() .............. OpenSSL function (Crypto library)
369N/A Inside the source code you will be confronted with the following
369N/A server_rec .............. Apache (Virtual) Server
369N/A conn_rec ................ Apache Connection
369N/A request_rec ............. Apache Request
369N/A SSLModConfig ............ mod_ssl (Global) Module Configuration
369N/A SSLSrvConfig ............ mod_ssl (Virtual) Server Configuration
369N/A SSLDirConfig ............ mod_ssl Directory Configuration
369N/A SSLConnConfig ........... mod_ssl Connection Configuration
369N/A SSLFilterRec ............ mod_ssl Filter Context
369N/A SSL_CTX ................. OpenSSL Context
369N/A SSL_METHOD .............. OpenSSL Protocol Method
369N/A SSL_CIPHER .............. OpenSSL Cipher
369N/A SSL_SESSION ............. OpenSSL Session
369N/A SSL ..................... OpenSSL Connection
369N/A BIO ..................... OpenSSL Connection Buffer
369N/A For an overview how these are related and chained together have a look at the
369N/A structures. It's designed for DIN A4 paper size, but you can easily generate
369N/A a smaller version inside XFig by specifing a magnification on the Export
369N/A Experimental code is always encapsulated as following:
369N/A | #ifdef SSL_EXPERIMENTAL_xxxx
369N/A This way it is only compiled in when this define is enabled with
369N/A the APACI --enable-rule=SSL_EXPERIMENTAL option and as long as the
369N/A C pre-processor variable SSL_EXPERIMENTAL_xxxx_IGNORE is _NOT_
369N/A defined (via CFLAGS). Or in other words: SSL_EXPERIMENTAL enables all
SSL_EXPERIMENTAL_xxxx variables, except if SSL_EXPERIMENTAL_xxxx_IGNORE
is already defined. Currently the following features are experimental:
o SSL_EXPERIMENTAL_ENGINE
The ability to support the new forthcoming OpenSSL ENGINE stuff.
Until this development branch of OpenSSL is merged into the main
mod_ssl automatically recognizes this OpenSSL variant and then can
activate external crypto devices through SSLCryptoDevice directive.
The following intentional incompatibilities exist between mod_ssl
2.x from Apache 1.3 and this mod_ssl version for Apache 2.0:
o The complete EAPI-based SSL_VENDOR stuff was removed.
o The complete EAPI-based SSL_COMPAT stuff was removed.
o The <IfDefine> variable MOD_SSL is no longer provided automatically
The following major changes were made between mod_ssl
2.x from Apache 1.3 and this mod_ssl version for Apache 2.0:
o The DBM based session cache is now based on APR's DBM API only.
o The shared memory based session cache is now based on APR's APIs.
o SSL I/O is now implemented in terms of filters rather than BUFF
o Eliminated ap_global_ctx. Storing Persistant information in
process_rec->pool->user_data. The ssl_pphrase_Handle_CB() and
ssl_config_global_* () functions have an extra parameter now -
"server_rec *" - which is used to retrieve the SSLModConfigRec.
o Properly support restarts, allowing mod_ssl to be added to a server
that is already running and to change server
certs/keys on restart
o Various performance enhancements
o proxy support is no longer an "extension", much of the mod_ssl core
was re-written (ssl_engine_{init,kernel,config}.c) to be generic so
it could be re-used in proxy mode.
- the optional function ssl_proxy_enable is provide for mod_proxy
- proxy support now requires 'SSLProxyEngine on' to be configured
- proxy now supports SSLProxyCARevocation{Path,File} in addition to
the original SSLProxy* directives
o per-directory SSLCACertificate{File,Path} is now thread-safe but
requires SSL_set_cert_store patch to OpenSSL
o the ssl_engine_{ds,ext}.c source files are obsolete and no longer
See the top-level STATUS file in httpd-2.0 for current efforts and goals.