young
Новичок
SSL Socket
Отрывок из мана
http://www.zend.com/manual/transports.php
Отрывок из мана
http://www.zend.com/manual/transports.php
А куда на самом деле писать эти Context options? Мне надо при открытии соединения указать ему свой сертификат.The ssl:// and tls:// transports (available only when openssl support is compiled into PHP) are extensions of the tcp:// transport which includes SSL encryption. In PHP 4.3 OpenSSL support must be statically compiled into PHP, in PHP 5.0 it may be compiled as a module or statically.
Table J-1. Context options for ssl:// and tls:// transports (since PHP 4.3.2)
verify_peer TRUE or FALSE. Require verification of SSL certificate used. FALSE
allow_self_signed TRUE or FALSE. Allow self-signed certificates. FALSE
cafile Location of Certificate Authority file on local filesystem which should be used with the verify_peer context option to authenticate the identity of the remote peer.