1MONGOC_AUTO_ENCRYPTION_OPTS_SET_TLS_lMOiOPbNTmGSoO(nC3g_)oAcUTO_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
2
3
4
6 mongoc_auto_encryption_opts_set_tls_opts - mongoc_auto_encryp‐
7 tion_opts_set_tls_opts()
8
10 void
11 mongoc_auto_encryption_opts_set_tls_opts (
12 mongoc_auto_encryption_opts_t *opts, const bson_t *tls_opts);
13
15 • opts: The mongoc_auto_encryption_opts_t
16
17 • tls_opts: A bson_t mapping a Key Management Service (KMS) provider
18 name to a BSON document with TLS options.
19
20 tls_opts is a BSON document of the following form:
21
22 <KMS provider name>: {
23 tlsCaFile: Optional<String>
24 tlsCertificateKeyFile: Optional<String>
25 tlsCertificateKeyFilePassword: Optional<String>
26 }
27
28 The KMS providers aws, azure, gcp, and kmip are supported as keys in
29 the tls_opts document.
30
31 tls_opts maps the KMS provider name to a BSON document for TLS options.
32
33 The BSON document for TLS options may contain the following keys:
34
35 • MONGOC_URI_TLSCERTIFICATEKEYFILE
36
37 • MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD
38
39 • MONGOC_URI_TLSCAFILE
40
41 Example use
42
43 mongoc_auto_encryption_opts_t *ae_opts =
44 mongoc_auto_encryption_opts_new ();
45 bson_t *tls_opts = bson_new ();
46
47 BCON_APPEND (tls_opts, "kmip", "{", MONGOC_URI_TLSCAFILE, "ca1.pem", "}");
48 BCON_APPEND (tls_opts, "aws", "{", MONGOC_URI_TLSCAFILE, "ca2.pem", "}");
49 mongoc_auto_encryption_opts_set_tls_opts (ae_opts, tls_opts);
50
51
52 See configuring_tls for a description of the behavior of these options.
53
54 SEE ALSO:
55 mongoc_client_enable_auto_encryption()
56
57 The guide for Using Client-Side Field Level Encryption
58
59
61 MongoDB, Inc
62
64 2017-present, MongoDB, Inc
65
66
67
68
691.21.1 MarMO0N2G,OC2_0A2U2TO_ENCRYPTION_OPTS_SET_TLS_OPTS(3)