Add logic in for selcting a CA bundle to be used