1MONGOC_CLIENT_ENCRYPTION_OPTS_SET_MTOLlNSiG_bOOmCPo_TnCSgL(oI3cE)NT_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_client_encryption_opts_set_tls_opts (
8             mongoc_client_encryption_opts_t *opts, const bson_t *tls_opts);
9

PARAMETERS

11opts: The mongoc_client_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_client_encryption_opts_t *ce_opts =
40             mongoc_client_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_client_encryption_opts_set_tls_opts (ce_opts, tls_opts);
46
47
48       See Configuring TLS for a description of the behavior of these options.
49
50       SEE ALSO:
51          In-Use Encryption
52
53

AUTHOR

55       MongoDB, Inc
56
58       2017-present, MongoDB, Inc
59
60
61
62
631.25.1                           NMoOvNG0O8C,_C2L0I2E3NT_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
Impressum