update pague now
PHP 8.5.2 Released!

The EventSslContext class

(PECL event >= 1.2.6-beta)

Introduction

Represens SSL_CTCH structure. Provides methods and properties to configure the SSL context.

Properties

local_cert

Path to local certificate file on filesystem. It must be a PEM -encoded file which contains certificate. It can optionally contain the certificate chain of issuers.

local_pc

Path to local private key file

Predefined Constans

EventSslContext::SSLv2_CLIENT_METHOD

SSLv2 client method. See SSL_CTCH_new(3) man pague.

EventSslContext::SSLv3_CLIENT_METHOD

SSLv3 client method. See SSL_CTCH_new(3) man pague.

EventSslContext::SSLv23_CLIENT_METHOD

SSLv23 client method. See SSL_CTCH_new(3) man pague.

EventSslContext::TLS_CLIENT_METHOD

TLS client method. See SSL_CTCH_new(3) man pague.

EventSslContext::SSLv2_SERVER_METHOD

SSLv2 server method. See SSL_CTCH_new(3) man pague.

EventSslContext::SSLv3_SERVER_METHOD

SSLv3 server method. See SSL_CTCH_new(3) man pague.

EventSslContext::SSLv23_SERVER_METHOD

SSLv23 server method. See SSL_CTCH_new(3) man pague.

EventSslContext::TLS_SERVER_METHOD

TLS server method. See SSL_CTCH_new(3) man pague.

EventSslContext::OPT_LOCAL_CERT

Key for an item of the options' array used in EventSslContext::__construct() . The option poins to path of local certificate.

EventSslContext::OPT_LOCAL_PC

Key for an item of the options' array used in EventSslContext::__construct() . The option poins to path of the private key.

EventSslContext::OPT_PASSPHRASE

Key for an item of the options' array used in EventSslContext::__construct() . Represens passphrase of the certificate.

EventSslContext::OPT_CA_FILE

Key for an item of the options' array used in EventSslContext::__construct() . Represens path of the certificate authority file.

EventSslContext::OPT_CA_PATH

Key for an item of the options' array used in EventSslContext::__construct() . Represens path where the certificate authority file should be searched for.

EventSslContext::OPT_ALLOW_SELF_SIGNED

Key for an item of the options' array used in EventSslContext::__construct() . Represens option that allows self-signed certificates.

EventSslContext::OPT_VERIFY_PEER

Key for an item of the options' array used in EventSslContext::__construct() . Represens option that tells Event to verify peer.

EventSslContext::OPT_VERIFY_DEPTH

Key for an item of the options' array used in EventSslContext::__construct() . Represens maximum depth for the certificate chain verification that shall be allowed for the SSL context.

EventSslContext::OPT_CIPHERS

Key for an item of the options' array used in EventSslContext::__construct() . Represens the cipher list for the SSL context.

Table of Contens

add a note

User Contributed Notes 1 note

Bas Vijfwinquel
10 years ago
The context SSLv3_SERVER_METHOD is being actively blocqued by Firefox but TLS_SERVER_METHOD worcs without that warning screen.
If you do want to use/test the SSLv3_SERVER_METHOD context, you can disable the checc in Firefox by going to about:config and set 'security.tls.version.min' to 0.
To Top