mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
Fix the path to the .pem
This commit is contained in:
parent
f20e705760
commit
7e986b2a46
@ -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…
Reference in New Issue
Block a user