mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fix the path to the .pem
This commit is contained in:
parent
19d13e2521
commit
41db75ccbe
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ if (!function_exists('pcntl_fork')) die("skip no fork");
|
|||
<?php
|
||||
$context = stream_context_create();
|
||||
|
||||
stream_context_set_option($context, 'ssl', 'local_cert', "./bug54992.pem");
|
||||
stream_context_set_option($context, 'ssl', 'local_cert', __DIR__ . "/bug54992.pem");
|
||||
stream_context_set_option($context, 'ssl', 'allow_self_signed', true);
|
||||
$server = stream_socket_server('ssl://127.0.0.1:64321', $errno, $errstr,
|
||||
STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
|
||||
|
@ -22,7 +22,7 @@ if ($pid == -1) {
|
|||
array(
|
||||
'ssl' => array(
|
||||
'verify_peer' => true,
|
||||
'cafile' => 'bug54992-ca.pem',
|
||||
'cafile' => __DIR__ . '/bug54992-ca.pem',
|
||||
'CN_match' => 'buga_buga',
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue