MongoDBServerResource.WithTlsAllowInvalidCertificates

Method
📦 Aspire.Hosting.MongoDB v17.0.0
type MongoDBServerResource interface {
// ... omitted for brevity
WithTlsAllowInvalidCertificates() MongoDBServerResource
}

Signature

methodWithTlsAllowInvalidCertificatesbuilder
Configures the MongoDB server to accept TLS connections whose peer certificate cannot be validated, by passing --tlsAllowInvalidCertificates to mongod.
WithTlsAllowInvalidCertificates() MongoDBServerResource
MongoDBServerResource

The resource builder.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: