You can use getSubjectName and getPublicKey to obtain CASubject and CAPubKey, and then pass their values to CertChainValidationParameters.