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

NAME

6       mongoc_auto_encryption_opts_set_tls_opts      -     mongoc_auto_encryp‐
7       tion_opts_set_tls_opts()
8

SYNOPSIS

10          void
11          mongoc_auto_encryption_opts_set_tls_opts (
12             mongoc_auto_encryption_opts_t *opts, const bson_t *tls_opts);
13

PARAMETERS

15opts: The mongoc_auto_encryption_opts_t
16
17tls_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
35MONGOC_URI_TLSCERTIFICATEKEYFILE
36
37MONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD
38
39MONGOC_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

AUTHOR

61       MongoDB, Inc
62
64       2017-present, MongoDB, Inc
65
66
67
68
691.23.1                           OctMO2N0G,OC2_0A2U2TO_ENCRYPTION_OPTS_SET_TLS_OPTS(3)
Impressum