Thanks for providing that information @Ghrib_Ahmed. Seems the mongo and mongodump reverting to a previous version is a seperate issue to the one originally reported here.
So my question is, is there a way to do the update without having to do a manual file manipulation?
In other words, just run a simple command?
Have you tried downloading the up to date mongo and mongodump tools and run them directly from their bin folders? This way you won’t have to manually manipulate any files or configurations. It would just be for troubleshooting connectivity using the more up to date version of the tools.
For example, I have mongo version 4.4.6 added to PATH within my environment. However, I can run mongo version 4.4.4 directly by running it from the bin folder within the mongodb version 4.4.4 installation folder shown below:
07:44 pm JT@MacbookPro [~] $mongo --version
MongoDB shell version v4.4.6
Build Info: {
"version": "4.4.6",
"gitVersion": "72e66213c2c3eab37d9358d5e78ad7f5c1d0d0d7",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
07:44 pm JT@MacbookPro [~] $./mongodb-macos-x86_64-4.4.4/bin/mongo --version
MongoDB shell version v4.4.4
Build Info: {
"version": "4.4.4",
"gitVersion": "8db30a63db1a9d84bdcad0c83369623f708e0397",
"modules": [],
"allocator": "system",
"environment": {
"distarch": "x86_64",
"target_arch": "x86_64"
}
}
You can try downloading the corresponding version of MongoDB community server which matches the MongoDB version of the cluster you’re attempting to connect to. Once downloaded and unpacked, you should find mongo within the bin folder. You can then run the newer version of mongo directly by using a command such as below:
$ <MongoDB Bin Folder Path>/mongo "mongodb+srv://cluster0.fklgt.mongodb.net/MY_DATA_BASE_NAME" --username MY_USER_NAME
Where is the full path of the bin folder within the unpacked MongoDB server file.
In addition to this, are you able to provide what operating system + OS version you’re attempting to connect from?
Lastly, did you try to attempt reverting back to DST Root CA X3 to see if mongodump and mongo connected without SSL errors?
Jason