Closed thekid closed 3 years ago
Following the $this->conn->connect() call, the following needs to be added:
$this->conn->connect()
if (isset($this->options['ssl'])) { if (!stream_socket_enable_crypto($this->conn->getHandle(), true, STREAM_CRYPTO_METHOD_ANY_CLIENT)) { $e= new ConnectException('SSL handshake failed'); \xp::gc(__FILE__); throw $e; } }
See https://docs.mongodb.com/manual/reference/connection-string/ - support ssl=true as well as tls=true.
ssl=true
tls=true
Following the
$this->conn->connect()
call, the following needs to be added: