Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
6dcaeb7f
Commit
6dcaeb7f
authored
Nov 08, 2016
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-195: Document SSL driver options for MongoDB\Client
parent
c6145256
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
0 deletions
+95
-0
apiargs-MongoDBClient-method-construct-driverOptions.yaml
...apiargs-MongoDBClient-method-construct-driverOptions.yaml
+95
-0
No files found.
docs/includes/apiargs-MongoDBClient-method-construct-driverOptions.yaml
View file @
6dcaeb7f
...
...
@@ -17,4 +17,99 @@ description: |
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
allow_invalid_hostname
type
:
boolean
description
:
|
Disables hostname validation if ``true``. Defaults to ``false``.
Allowing invalid hostnames may expose the driver to a `man-in-the-middle
attack <https://en.wikipedia.org/wiki/Man-in-the-middle_attack>`_.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
ca_dir
type
:
string
description
:
|
Path to a correctly hashed certificate directory. The system certificate store
will be used by default.
Falls back to the deprecated ``capath`` SSL context option if not specified.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
ca_file
type
:
string
description
:
|
Path to a certificate authority file. The system certificate store will be
used by default.
Falls back to the deprecated ``cafile`` SSL context option if not specified.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
crl_file
type
:
string
description
:
|
Path to a certificate revocation list file.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
pem_file
type
:
string
description
:
|
Path to a PEM encoded certificate to use for client authentication.
Falls back to the deprecated ``local_cert`` SSL context option if not
specified.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
pem_pwd
type
:
string
description
:
|
Passphrase for the PEM encoded certificate (if applicable).
Falls back to the deprecated ``passphrase`` SSL context option if not
specified.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
weak_cert_validation
type
:
boolean
description
:
|
Disables certificate validation ``true``. Defaults to ``false``.
Falls back to the deprecated ``allow_self_signed`` SSL context option if not
specified.
interface
:
phpmethod
operation
:
~
optional
:
true
---
arg_name
:
option
name
:
context
type
:
resource
description
:
|
:php:`SSL context options <manual/en/context.ssl.php>` to be used as fallbacks
for other driver options (as specified). Note that the driver does not consult
the default stream context.
This option is supported for backwards compatibility, but should be considered
deprecated.
interface
:
phpmethod
operation
:
~
optional
:
true
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment