Skip to content

Commit 9b14279

Browse files
update tls option (#46)
1 parent 76ab287 commit 9b14279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/configuration.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ and certificate, and that has TLS enabled:
121121
#include <mongocxx/uri.hpp>
122122

123123
auto client = mongocxx::client{
124-
uri{"mongodb://host1/?authMechanism=MONGODB-X509&tlsCertificateFile=client.pem&tls=true"}
124+
uri{"mongodb://host1/?authMechanism=MONGODB-X509&tlsCertificateKeyFile=client.pem&tls=true"}
125125
};
126126

127127
See the MongoDB server :manual:`X.509 tutorial </tutorial/configure-x509-client-authentication/>`

0 commit comments

Comments
 (0)