Trouble connecting to cloud database

Your detailed logs show some certificate errors
May be your certificates are expired
Check this link

Keep getting ServerSelectionTimeoutError