Rancher agent and self signed certificate problems

Hi,

I am trying to set up Rancher on two RHEL7 nodes, one being the server and the other one an extra Rancher host. The server is now up without problems. The agent boots fine as well until it fires up the metadata process. The log of this process is full with messages like:

Failed to subscribeGet https://rancher.url/v2-beta: x509 certificate signed by unkown authority

Rancher is behind an SSL terminating HAProxy using a self signed certificate. It looks to me as if the metadata container is not reading the certificate. Anyone? Is this a bug?

BTW, this is Rancher agent v1.2.1 and metadata:v0.8.11.

Cheers,
Erwin