changes to support specifying the location of the ca cert file