PHP 5.6.0 released

HttpRequest::setSslOptions

(PECL pecl_http >= 0.10.0)

HttpRequest::setSslOptionsEstablecer las opciones de certificados digitales

Descripción

public bool HttpRequest::setSslOptions ([ array $options ] )

Establece las opciones de los certificados digitales SSL.

Parámetros

options

array asociativo con todas las opciones específicas de SSL; en caso de estar vacío, se reiniciarán las opciones de SSL

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

add a note add a note

User Contributed Notes 1 note

up
0
Andy Christianson
6 years ago
This page does not describe the possible keys for the input array.

Here are the SSL option keys from the cURL source code as of 2008-07-24:

CERT: String that holds file name of the SSL certificate to use
CERTTYPE: String that holds file type of the SSL certificate to use
KEY: String that holds file name of the SSL certificate to use
KEYTYPE: String that holds file type of the SSL certificate to use
PASSWD: String that holds the SSL or SSH private key password.
ENGINE: String that holds the SSL crypto engine.
ENGINE_DEFAULT: flag to set engine as default.
To Top