I've mostly fixed the bug in the protocols vs the settings. If they match it should not be a problem. If they don't match you should get an error, and it should try to make an secure connection. Please let me know if you see any problems.
BTW, you don't need to enter a full URL into the hostname field. Just use the IP address, or hostname. eg. 10.10.20.1 or myucs.mycompany.com