Restore ssl settings in reference.conf, see #3022

* Cleanup and addition of configuration tests for remote settings