Added option for custom PKIClient implementation