CIII. OpenSSL FunctionsIntroducciónThis module uses the functions of OpenSSL for generation and verification of signatures and for sealing (encrypting) and opening (decrypting) data. OpenSSL offers many features that this module currently doesn't support. Some of these may be added in the future. RequisitosIn order to use the OpenSSL functions you need to install the OpenSSL package. PHP between versions 4.0.5 and 4.3.1 will work with OpenSSL >= 0.9.5. Other versions (PHP <=4.0.4pl1 and >= 4.3.2) require OpenSSL >= 0.9.6.
InstalaciónTo use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR].
Configuración en tiempo de ejecuciónEsta extensión no tiene directivas de configuración en php.ini. Key/Certificate parametersQuite a few of the openssl functions require a key or a certificate parameter. PHP 4.0.5 and earlier have to use a key or certificate resource returned by one of the openssl_get_xxx functions. Later versions may use one of the following methods:
Certificate VerificationWhen calling a function that will verify a signature/certificate, the cainfo parameter is an array containing file and directory names that specify the locations of trusted CA files. If a directory is specified, then it must be a correctly formed hashed directory as the openssl command would use. Constantes predefinidasEstas constantes están definidas por esta extensión y estarán disponibles solamente cuando la extensión ha sido o bien compilada dentro de PHP o grabada dinámicamente en tiempo de ejecución. PKCS7 Flags/ConstantsThe S/MIME functions make use of flags which are specified using a bitfield which can include one or more of the following values: Tabla 1. PKCS7 CONSTANTS
|
||||||||||||||||||||||||||||||||