How to check my current connection status if using TLS?

I am running Mongodb 6.0.5 on windows.

  port: 27017
    mode: allowTLS
    certificateKeyFile: C:\Program Files\Certbot\bin\certificateKeyFile.pem

Here is my connection string:


However when I use this command:

db.runCommand({whatsmyuri: 1})

It only shows

{ you: ‘public-IP:59499’, ok: 1 }

Why is it not showing the TLS/SSL settings of my connection? Is there any other way to check it?

check this answer.

Or you can disable tls from server side, and if you fail to connect with same connection string, then “your current connection is TLS”.