mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Update MongoDB::__construct() example for SSL and client cert
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339598 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
56791338a6
commit
e0fb30d761
1 changed files with 5 additions and 2 deletions
|
@ -144,7 +144,7 @@ $manager = new MongoDB\Driver\Manager("mongodb://myusername:myp%40ss%3Aw%25rd@lo
|
|||
</programlisting>
|
||||
|
||||
<para>
|
||||
Connecting to MongoDB with SSL and a certificate:
|
||||
Connecting to MongoDB with SSL and a client certificate:
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -153,7 +153,10 @@ $manager = new MongoDB\Driver\Manager("mongodb://myusername:myp%40ss%3Aw%25rd@lo
|
|||
$manager = new MongoDB\Driver\Manager(
|
||||
"mongodb://username:password@aws-us-east-1-portal.xx.dblayer.com:28071/admin?ssl=true",
|
||||
[],
|
||||
["cafile" => "/full/path/to/cert"]
|
||||
[
|
||||
"local_cert" => "/path/to/client.pem",
|
||||
"passphrase" => "Very secretive client.pem passphrase",
|
||||
]
|
||||
);
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue