We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 139ac53 commit c347eb4Copy full SHA for c347eb4
source/includes/fundamentals/code-snippets/auth.rs
@@ -74,7 +74,9 @@ async fn main() -> mongodb::error::Result<()> {
74
75
// start-x509
76
let uri = format!(
77
- "mongodb://<hostname>:<port>/?tlsCAFile={tlsCAFile}&tlsCertificateKeyFile={tlsCertificateKeyFile}&tlsCertificateKeyFilePassword={tlsCertificateKeyFilePassword}",
+ "mongodb://<hostname>:<port>/?tlsCAFile={tlsCAFile}\
78
+ &tlsCertificateKeyFile={tlsCertificateKeyFile}\
79
+ &tlsCertificateKeyFilePassword={tlsCertificateKeyFilePassword}",
80
tlsCAFile = "<path to CA certificate>",
81
tlsCertificateKeyFile = "<path to private client key>",
82
tlsCertificateKeyFilePassword = "<password for client key>"
0 commit comments