The Rancher Agent v1.2.2 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:v1.2.2, with pyopenssl installed so the registration will work. Once the agent runs, it will automatically upgrade itself to the official rancher/agent:v1.2.2.
When running the agent, replace rancher/agent with shubb30/rancher-agent-sni:v126.96.36.199