PHPDaemon/Network/Connection.php 1 location
|
@@ 378-381 (lines=4) @@
|
375 |
|
*/ |
376 |
|
protected function initSSLContext() |
377 |
|
{ |
378 |
|
if (!\EventUtil::sslRandPoll()) { |
379 |
|
Daemon::$process->log(get_class($this->pool) . ': EventUtil::sslRandPoll failed'); |
380 |
|
return false; |
381 |
|
} |
382 |
|
|
383 |
|
$params = [ |
384 |
|
\EventSslContext::OPT_VERIFY_PEER => $this->verifypeer, |
PHPDaemon/BoundSocket/Generic.php 1 location
|
@@ 256-260 (lines=5) @@
|
253 |
|
*/ |
254 |
|
protected function initSecureContext() |
255 |
|
{ |
256 |
|
if (!\EventUtil::sslRandPoll()) { |
257 |
|
Daemon::$process->log(get_class($this->pool) . ': EventUtil::sslRandPoll failed'); |
258 |
|
$this->erroneous = true; |
259 |
|
return; |
260 |
|
} |
261 |
|
if (!FileSystem::checkFileReadable($this->certfile) || !FileSystem::checkFileReadable($this->pkfile)) { |
262 |
|
Daemon::log('Couldn\'t read ' . $this->certfile . ' or ' . $this->pkfile . ' file. To generate a key' . PHP_EOL |
263 |
|
. 'and self-signed certificate, run' . PHP_EOL |