Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
AusSupportin70
Frequent Visitor

Connection Issues with Mongo DB using Fabric VNET Data Gateway

AusSupportin70_0-1781092797567.pngAusSupportin70_1-1781092831649.png

Getting the above error when trying to connect. MondoBD TLS Mode set to RequireTLS.  but we have set to allowconnectionwithoutcertificate:true port:27017 bindip:0.0.0.0  

1 ACCEPTED SOLUTION
AusSupportin70
Frequent Visitor

Noticed it is SSL Cert issue. All Sorted 

View solution in original post

10 REPLIES 10
AusSupportin70
Frequent Visitor

Noticed it is SSL Cert issue. All Sorted 

v-shchada-msft
Community Support
Community Support

Hi @AusSupportin70,

Just checking in to see if your issue has been resolved. Please let us know if you need any further assistance.

Thank you.

v-shchada-msft
Community Support
Community Support

Hi @AusSupportin70,
Thank you for reaching out to the Microsoft Fabric Community Forum.

Just checking in, were you able to resolve the issue? If not please feel free to share an update and we will be happy to assist further.
Your feedback will also help others facing similar challenges.

Thank you.

AusSupportin70
Frequent Visitor

looks like need a public SSL?

Hi @AusSupportin70,
Thank you for reaching out to the Microsoft Fabric Community Forum.

At this point, the issue appears more likely related to the TLS/SSL handshake between the Fabric VNET gateway and MongoDB. Even with allowConnectionsWithoutCertificates:true, TLS negotiation must still succeed because MongoDB is configured with RequireTLS.

 

Could you test the connection from the VM using mongosh with TLS enabled and verify whether the MongoDB server is using a self-signed certificate or a certificate whose CN/SAN does not match the server name? It would also help to review the MongoDB logs for any TLS/SSL handshake failures or rejected connections during the Fabric connection attempt.

I hope this information helps. Please do let us know if you have any further queries.

Regards.




AusSupportin70
Frequent Visitor

"MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)

ati_puri
Resolver III
Resolver III

Hi @AusSupportin70 ,

 

The VNT gateway uses dynamic IPs from a delegated subnet, did you check if entire subnet needs to be whitelisted? Can you also delpy test VM on the same subnet and try connecting to MongoDB? is there any firewall rules blocking the connection.

 

Let me know if you have tested the above.

 

Thanks

Ati Puri

Can you also delpy test VM on the same subnet and try connecting to MongoDB?  No we cannot associate anything to this subnet.

I can ping the ModoDb server and Port via the Test VM in fabric Vnet 

how about the Subnet IP whitelisting?

Whitelist From where? 

 

Current setup as follows

 

Internet--Firewall---Azurerouteserver (Vnet1) ---- Peers to all  Vnet2 ( Fabricgateway)....Vent8 ( MongoDb servers)

Now can ping Vm in Vnet8 from Vnet2 but cannot connect to vnet8 server using fabric gateway? 

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

June Fabric Update Carousel

Fabric Monthly Update - June 2026

Check out the June 2026 Fabric update to learn about new features.