.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "MONGOC_AUTO_ENCRYPTION_OPTS_SET_TLS_OPTS" "3" "May 07, 2024" "1.27.1" "libmongoc" .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 .sp .EX void mongoc_auto_encryption_opts_set_tls_opts ( mongoc_auto_encryption_opts_t *opts, const bson_t *tls_opts); .EE .UNINDENT .UNINDENT .SH PARAMETERS .INDENT 0.0 .IP \(bu 2 \fBopts\fP: The \fI\%mongoc_auto_encryption_opts_t\fP .IP \(bu 2 \fBtls_opts\fP: A \fI\%bson_t\fP mapping a Key Management Service (KMS) provider to a BSON document with TLS options. .UNINDENT .sp \fBtls_opts\fP is a BSON document of the following form: .INDENT 0.0 .INDENT 3.5 .sp .EX : { tlsCaFile: Optional tlsCertificateKeyFile: Optional tlsCertificateKeyFilePassword: Optional } .EE .UNINDENT .UNINDENT .sp The KMS providers \fBaws\fP, \fBazure\fP, \fBgcp\fP, and \fBkmip\fP are supported as keys in the \fBtls_opts\fP document. They may include an optional name suffix separated with a colon. Example: \fBaws:name2\fP\&. .sp \fBtls_opts\fP maps the KMS provider name to a BSON document for TLS options. .sp The BSON document for TLS options may contain the following keys: .INDENT 0.0 .IP \(bu 2 \fBMONGOC_URI_TLSCERTIFICATEKEYFILE\fP .IP \(bu 2 \fBMONGOC_URI_TLSCERTIFICATEKEYFILEPASSWORD\fP .IP \(bu 2 \fBMONGOC_URI_TLSCAFILE\fP .UNINDENT .sp Example use .INDENT 0.0 .INDENT 3.5 .sp .EX mongoc_auto_encryption_opts_t *ae_opts = mongoc_auto_encryption_opts_new (); bson_t *tls_opts = bson_new (); BCON_APPEND (tls_opts, \(dqkmip\(dq, \(dq{\(dq, MONGOC_URI_TLSCAFILE, \(dqca1.pem\(dq, \(dq}\(dq); BCON_APPEND (tls_opts, \(dqaws\(dq, \(dq{\(dq, MONGOC_URI_TLSCAFILE, \(dqca2.pem\(dq, \(dq}\(dq); mongoc_auto_encryption_opts_set_tls_opts (ae_opts, tls_opts); .EE .UNINDENT .UNINDENT .sp See \fI\%Configuring TLS\fP for a description of the behavior of these options. .sp \fBSEE ALSO:\fP .INDENT 0.0 .INDENT 3.5 .nf \fI\%mongoc_client_enable_auto_encryption()\fP .fi .sp .nf \fI\%In\-Use Encryption\fP .fi .sp .UNINDENT .UNINDENT .SH AUTHOR MongoDB, Inc .SH COPYRIGHT 2017-present, MongoDB, Inc .\" Generated by docutils manpage writer. .