add options for ca, rejectUnauthorized and agent

Signed-off-by: Johny Jose <johny@playlyfe.com>