add cafile
test: make sure that cafile populates ca
separate cafile loading logic into module
v1.1.0