1MONGOC_AUTO_ENCRYPTION_OPTS_SET_TLS_lMOiOPbNTmGSoO(nC3g_)oAcUTO_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_auto_encryption_opts_set_tls_opts (
8             mongoc_auto_encryption_opts_t *opts, const bson_t *tls_opts);
9

PARAMETERS

11opts: The mongoc_auto_encryption_opts_t
12
13tls_opts:  A  bson_t  mapping a Key Management Service (KMS) provider
14         name to a BSON document with TLS options.
15
16       tls_opts is a BSON document of the following form:
17
18          <KMS provider name>: {
19             tlsCaFile: Optional<String>
20             tlsCertificateKeyFile: Optional<String>
21             tlsCertificateKeyFilePassword: Optional<String>
22          }
23
24       The KMS providers aws, azure, gcp, and kmip are supported  as  keys  in
25       the tls_opts document.
26
27       tls_opts maps the KMS provider name to a BSON document for TLS options.
28
29       The BSON document for TLS options may contain the following keys:
30
31MONGOC_URI_TLSCERTIFICATEKEYFILE
32
33MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD
34
35MONGOC_URI_TLSCAFILE
36
37       Example use
38
39          mongoc_auto_encryption_opts_t *ae_opts =
40             mongoc_auto_encryption_opts_new ();
41          bson_t *tls_opts = bson_new ();
42
43          BCON_APPEND (tls_opts, "kmip", "{", MONGOC_URI_TLSCAFILE, "ca1.pem", "}");
44          BCON_APPEND (tls_opts, "aws", "{", MONGOC_URI_TLSCAFILE, "ca2.pem", "}");
45          mongoc_auto_encryption_opts_set_tls_opts (ae_opts, tls_opts);
46
47
48       See Configuring TLS for a description of the behavior of these options.
49
50       SEE ALSO:
51          mongoc_client_enable_auto_encryption()
52
53          In-Use Encryption
54
55

AUTHOR

57       MongoDB, Inc
58
60       2017-present, MongoDB, Inc
61
62
63
64
651.25.1                           NovMO0N8G,OC2_0A2U3TO_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
Impressum