Setting up the client connection to PMM server

Dear Members,

I am trying to use PMM as monitoring platform for our postgres and mysql estate i am new to this community. I have installed PMM server on docker and downloaded binaries for client for redhat. I have configured the PMM server as expected and i can open the console by http://servername:PN format.
now when i am trying to setup client by giving the above hostname and port number it gives me below erroer
hecking local pmm-agent status…
pmm-agent is not running.
Registering pmm-agent on PMM Server…
Failed to register pmm-agent on PMM Server: Post “https://hostname:PN/v1/management/Node/Register”: http: server gave HTTP response to HTTPS client.

i have not mentioned the actual hostnames and port number below is the command i used.
./pmm-agent setup --config-file=/export/home/dbadmin/pmm/pmm2-client-2.42.0/pmm-agent.yaml --server-address=HN:PN --server-username=admin --server-password=admin --paths-tempdir=/export/home/dbadmin/pmm/pmm2-client-2.42.0/tmp --paths-base=/export/home/dbadmin/pmm/pmm2-client-2.42.0

can someone help me to solve this issue i can try to install sls certificate on PMM server but this is for POC so i need to get this up,

Thanks i am able to solve the issue.
FYI:-- I mapped the docker 443 port to host external looks like 443 by default is the only port number where docker installation listens to https traffic.