added support for credentials dialog for service and automatic installation of self signed certificate