Watch Aspire live streamsDocsTry Aspire

MongoDBServerResource.withTlsAllowInvalidCertificates

Method
📦 Aspire.Hosting.MongoDB v13.6.0
interface MongoDBServerResource {
// ... 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

Defined on

This method is defined on the following type: