The current Rancher Agent does not support Server Name Indication. If you are using a certificate for Rancher Server that contains a Subject Alternative Name with the hostname and IP, you may get an error when the agent tries to register with Rancher server.
requests.exceptions.SSLError: hostname '10.102.50.12' doesn't match either of 'rancher.mydomain.com', '10.102.50.12'
This is the same agent, with pyopenssl installed so the registration will work. Once the agent runs, it will automatically upgrade itself to the official rancher/agent.
When running the agent, replace rancher/agent with shubb30/rancher-agent-sni:v1.2.5