SSL context options

SSL context options — SSL context option listing

说明

Context options for ssl:// and tls://transports. 

可选项

verify_peer boolean  

Require verification of SSL certificate used. 

Defaults to FALSE. 

allow_self_signed boolean  

Allow self-signed certificates. Requires verify_peer. 

Defaults to FALSE 

cafile string  

Location of Certificate Authority file on local filesystemwhich should be used with the verify_peercontext option to authenticate the identity of the remote peer. 

capath string  

If cafile is not specified or if the certificateis not found there, the directory pointed to by capath is searched for a suitable certificate. capathmust be a correctly hashed certificate directory. 

local_cert string  

Path to local certificate file on filesystem. It must be a PEMencoded file which contains your certificate and private key.It can optionally contain the certificate chain of issuers. 

passphrase string  

Passphrase with which your local_cert filewas encoded. 

CN_match string  

Common Name we are expecting. PHP will perform limited wildcardmatching. If the Common Name does not match this, the connectionattempt will fail. 

verify_depth integer  

Abort if the certificate chain is too deep. 

Defaults to no verification. 

ciphers string  

Sets the list of available ciphers. The format of the string is describedin » ciphers(1). 

Defaults to DEFAULT. 

capture_peer_cert boolean  

If set to TRUE a peer_certificate context optionwill be created containing the peer certificate. 

capture_peer_cert_chain boolean  

If set to TRUE a peer_certificate_chain contextoption will be created containing the certificate chain. 

SNI_enabled boolean  

If set to TRUE server name indication will be enabled. Enabling SNIallows multiple certificates on the same IP address. 

SNI_server_name string  

If set, then this value will be used as server name for server nameindication. If this value is not set, then the server name is guessedbased on the hostname used when opening the stream. 

disable_compression boolean  

If set, disable TLS compression. This can help mitigate the CRIME attackvector. 

更新日志

版本

说明

5.4.13 Added disable_compression. Requires OpenSSL >= 1.0.0.  

5.3.2 Added SNI_enabled and SNI_server_name.  

5.0.0 Added capture_peer_cert, capture_peer_chain and ciphers.  

注释

Note: Because ssl:// is the underlying transport for the https:// and ftps:// wrappers,any context options which apply to ssl:// also apply to https:// and ftps://.  

Note: For SNI (Server Name Indication) to be available, then PHP must be compiledwith OpenSSL 0.9.8j or greater. Use the OPENSSL_TLSEXT_SERVER_NAME to determine whether SNI issupported.  

参见

◾Socket context options

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

热门产品

php编程基础教程.pptx|php编程培训,php,编程,基础,教程,pptx
php编程基础教程.pptx

历史上的今天:04月29日

热门专题

易捷尔高职单招|易捷尔高职单招,易捷尔高职单招培训,单招分数线,单招录取分数线,高职单招学校分数线
易捷尔高职单招
卓越综合高中|卓越综合高中
卓越综合高中
云南开放大学|云南开放大学报名,云南开放大学报考,云南开放大学,什么是云南开放大学,云南开放大学学历,云南开放大学学费,云南开放大学报名条件,云南开放大学报名时间,云南开放大学学历,云南开放大学专业
云南开放大学
安徽中源管业有限公司|安徽中源管业有限公司,安徽中源管业有限公司介绍,安徽中源管业有限公司电话,安徽中源管业有限公司地址,安徽中源管业有限公司厂家,安徽中源管业有限公司电力管,安徽中源管业有限公司管材
安徽中源管业有限公司
昆明综合高中|昆明综合高中
昆明综合高中
金诺幼儿园(春城路金诺幼儿园)|昆明官渡区幼儿园,幼儿园报名,官渡区幼儿园,春城路幼儿园,幼儿园招生,学前班,昆明幼儿园,金诺幼儿园,环城南路幼儿园,石井路幼儿园
金诺幼儿园(春城路金诺幼儿园)
云南网站建设|云南网站制作,网站建设,云南网站开发,云南网站设计,云南网页设计,云南网站建设公司,云南网站建设
云南网站建设
易捷尔单招|易捷尔单招,易捷尔单招培训,易捷尔单招报名,易捷尔单招考试,易捷尔单招培训学校,易捷尔单招分数
易捷尔单招

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部