File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
includes/fundamentals/code-snippets Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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>"
You can’t perform that action at this time.
0 commit comments