TLS extermal with HAProxy

Hi all, I installed Rancher in HA and in external TLS mode using HAProxy with a certificate signed by a self signed CA.
When I access from the internet I get the following message:
400 Bad Requests
The plain HTTP request was sent to HTTPS port
Can you help me figure out what I did wrong?
Thank you in advance