Allow scheduler to connect to a poller by https

If use_ssl is enabled on the poller, connect by https instead.