note 128002 added to context.ssl
| From: | tianyiw at vip dot qq dot com | Date: | Fri, 09 Dec 2022 16:52:49 +0000 |
| Subject: | note 128002 added to context.ssl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-219958@lists.php.net to get a copy of this message | ||
Enable SNI (Server Name Indication):
PEM must be contains certificate and private key.
<?php
$context = stream_context_create([
'ssl' => [
'SNI_enabled' => true,
'SNI_server_certs' => [
'host1.com' => '/path/host1.com.pem',
'host2.com' => '/path/host2.com.pem',
],
]
]);
?>
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.175 (proxied: 47.243.163.245)
----
Manual Page -- https://php.net/manual/en/context.ssl.php
Edit -- https://main.php.net/note/edit/128002
Del: integrated -- https://main.php.net/note/delete/128002/integrated
Del: useless -- https://main.php.net/note/delete/128002/useless
Del: bad code -- https://main.php.net/note/delete/128002/bad+code
Del: spam -- https://main.php.net/note/delete/128002/spam
Del: non-english -- https://main.php.net/note/delete/128002/non-english
Del: in docs -- https://main.php.net/note/delete/128002/in+docs
Del: other reasons-- https://main.php.net/note/delete/128002
Reject -- https://main.php.net/note/reject/128002
Search -- https://main.php.net/manage/user-notes.php