Fortfiy SCA Scan Azure DevOps Fails

Hi I sent a scan in a self-hosted agent in linux ubuntu running in docker for fortify sca scans in ado.

The following error appears when it tries to upload the scan.

##[error]request to https://hostname:8443/ssc/api/v1/projectVersions?fields=id&q=project.name:%22ProjectName%22%2BAND%2Bname:%22ProjectVersion%22 failed, reason: self signed certificate

Is a self signed certificate because is a test environment that I have, the certificate works in the main machines for ssc and sca but not the docker agent. Why this happens and how to avoid this error?