HttpRequest::setSslOptions

(PECL pecl_http >= 0.10.0)

HttpRequest::setSslOptionsSet ssl options

설명

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

Set SSL options.

인수

options

an associative array containing any SSL specific options; if empty or omitted, the SSL options will be reset

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

add a note add a note

User Contributed Notes 1 note

up
1
Andy Christianson
16 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