How to check my current connection status if using TLS?

I am running Mongodb 6.0.5 on windows.

net:
  port: 27017
  bindIp: 0.0.0.0
  tls:
    mode: allowTLS
    certificateKeyFile: C:\Program Files\Certbot\bin\certificateKeyFile.pem

Here is my connection string:

mongodb://username:password@domain-name.com:27017/?tls=true

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”.