Skip to content

Commit 0822969

Browse files
committed
x509 authentication 3.1
1 parent 4fa4b58 commit 0822969

File tree

1 file changed

+1
-2
lines changed
  • source/includes/fundamentals/code-snippets

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ async fn main() -> mongodb::error::Result<()> {
7575
// start-x509
7676
let uri = format!(
7777
"mongodb://<hostname>:<port>/?tlsCAFile={tlsCAFile}\
78-
&tlsCertificateKeyFile={tlsCertificateKeyFile}\
79-
&tlsCertificateKeyFilePassword={tlsCertificateKeyFilePassword}",
78+
&tlsCertificateKeyFile={tlsCertificateKeyFile}",
8079
tlsCAFile = "<path to CA certificate>",
8180
tlsCertificateKeyFile = "<path to private client key>"
8281
);

0 commit comments

Comments
 (0)