How to disable TLS1.1 on Elastic Agent

We are trying to disable TLS 1.1 service on port 8220 for the Elastic Agent Fleet Server.
The configuration file is as follows,I have three three different configuration methods but it is still not working.
The elastic-agent.yaml is located at the default installation path /opt/Elastic/Agent/elastic-agent.yaml and version is 8.11.1.

fleet:
  ssl:
    supported_protocols: ["TLS1.2", "TLS1.3"]
---
fleet: 
  xxxx 
ssl:
  supported_protocols: ["TLS1.2", "TLS1.3"]
---
fleet:
  kibana:
    ssl.supported_protocols: ["TLS1.2", "TLS1.3"]

Check this answer for a similar post: TLS1.1 disable in Fleet Server - #2 by leandrojmp

You need to use server.ssl instead of just ssl.

Thank you very much for your assistance. The issue has been resolved.