What is ssl certificate in php?
SSL context options — SSL context option listing Show Description Context options for Optionspeer_name stringPeer name to be used. If this value is not set, then the name is guessed based on the hostname used when opening the stream. verify_peer boolRequire verification of SSL certificate used. Defaults to verify_peer_name boolRequire verification of peer name. Defaults to allow_self_signed bool Allow self-signed certificates. Requires
Defaults to cafile string Location of Certificate Authority file on local filesystem which should be used with the capath string If local_cert string Path to local certificate file on filesystem. It must be a PEM encoded file which contains your certificate and private key. It can optionally contain the certificate chain of issuers. The private key also may be contained in a
separate file specified by local_pk string Path to local private key file on filesystem in case of separate files for certificate ( passphrase string Passphrase with which your verify_depth intAbort if the certificate chain is too deep. Defaults to no verification. ciphers stringSets the list of available ciphers. The format of the string is described in » ciphers(1). Defaults to capture_peer_cert bool If set to capture_peer_cert_chain bool If set to SNI_enabled bool If set to disable_compression boolIf set, disable TLS compression. This can help mitigate the CRIME attack vector. peer_fingerprint string | arrayAborts when the remote certificate digest doesn't match the specified hash. When a string is used, the length will determine which hashing algorithm is applied, either "md5" (32) or "sha1" (40). When an array is used, the keys indicate the hashing algorithm name and each corresponding value is the expected digest. security_level intSets the security level. If not specified the library default security level is used. The security levels are described in » SSL_CTX_get_security_level(3). Available as of PHP 7.2.0 and OpenSSL 1.1.0. Changelog
Notes
Charlie ¶ 5 years ago
Botjan kufca ¶ 12 years ago
consatangmail dot com ¶ 5 months ago
borbas dot geri at gmail dot com ¶ 8 years ago
mechtecs at gmail dot com ¶ 3 years ago
Charlie ¶ 5 years ago
What is SSL PHP?The Secure Sockets Layer (SSL) provides a secure channel over which regular HTTP requests and responses can flow. PHP doesn't specifically concern itself with SSL, so you cannot control the encryption in any way from PHP. An https:// URL indicates a secure connection for that document, unlike an http:// URL.
What is SSL certificate used for?An SSL certificate is a bit of code on your web server that provides security for online communications. When a web browser contacts your secured website, the SSL certificate enables an encrypted connection. It's kind of like sealing a letter in an envelope before sending it through the mail.
What is SSL certificate and its types?There are three types of SSL Certificate available today; Extended Validation (EV SSL), Organization Validated (OV SSL) and Domain Validated (DV SSL). The encryption levels are the same for each certificate, what differs is the vetting and verification processes needed to obtain the certificate.
What are the 3 types of SSL?There are three recognized categories of SSL certificate authentication types: Extended Validation (EV) Organization Validation (OV) Domain Validation (DV)
|