Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithTlsAllowInvalidCertificates

Method
📦 Aspire.Hosting.MongoDB v17.0.0
func (MongoDBServerResource) 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().

Applies to

This method applies to the following types: