feat(core): add support for self-signed ssl certificates and client credential flow.

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