get httpparams & port from parameters
self-signed certificate support