Support for CA/intermediate certs and pinning connect version

Connect 3.x introduces some breakage on this, pinning it to whatever 2.x version works is a quick remedy.

SSL config didn't took in account CA/Intermediate certificates, now it does.

Tested with default `config.json` and works, so should not introduce problems where it's already running.