X509: certificate signed by unknown authority

I think i'm not clear, sorry.

I add my fleet server with quick start parameters.

  1. My first try => I put my informations : Name and https://MYIP:8220
    Generate fleet server policy
    and install "fleet server to a centralized host"
    But when i install i see : "message":"Generating self-signed certificate for Fleet Server"
    And when i want to enroll agent into fleet : Error: fail to enroll: fail to execute request to fleet-server: x509: certificate signed by unknown authority
    For help, please see our troubleshooting guide at Troubleshoot common problems | Fleet and Elastic Agent Guide [8.6] | Elastic

  2. Second try => So after i create my own certificates and run the command i show you before to install my fleet server.
    But when i try to enroll a new Agent in Fleet with my own certificates, the error is the same.

I don't know where is my mistake.