Skip to content

Commit d6357bf

Browse files
committed
fix code
1 parent 1dabf38 commit d6357bf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/fundamentals/authentication.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ the connection by reading the following files:
288288
- A certificate authority (CA) file, which contains one or more
289289
certificate authorities to trust when making a TLS connection.
290290
Before connecting to the server, the driver uses this file to verify that the
291-
server's certificate is from the specified certificate authorities.
291+
server's certificate is from one of the specified certificate authorities.
292292

293293
- A certificate key file, which contains the client certificate
294294
and private key. The driver presents this file to the server to

source/includes/fundamentals/code-snippets/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async fn main() -> mongodb::error::Result<()> {
7474

7575
// start-x509
7676
let uri = format!(
77-
"mongodb://<hostname>:<port>/?tlsCAFile={tlsCAFile}&tlsCertificateKeyFile={tlsCertificateKeyFile}",
77+
"mongodb://<hostname>:<port>/?tlsCAFile={tlsCAFile}&tlsCertificateKeyFile={tlsCertificateKeyFile}&tlsCertificateKeyFilePassword={tlsCertificateKeyFilePassword}",
7878
tlsCAFile = "<path to CA certificate>",
7979
tlsCertificateKeyFile = "<path to private client key>",
8080
tlsCertificateKeyFilePassword = "<password for client key>"

0 commit comments

Comments
 (0)