I would like to retrieve the entire client certificate chain from a request in ISAPI.I already succeeded to get the first certificate in the client's certificate chain by invoking the code below:
LPEXTENSION_CONTROL_BLOCK ecb_;
...
CERT_CONTEXT_EX cce;
memset(&cce,0,sizeof(CERT_CONTEXT_EX));
char certbuf[64*1024];
cce.cbAllocated =sizeof(certbuf);
cce.CertContext.pbCertEncoded =(BYTE *)&certbuf;
ecb_->ServerSupportFunction(ecb_->ConnID, HSE_REQ_GET_CERT_INFO_EX,&cce,0,0)
However, I did not find out how to retrieve the rest of the certificate chain from this CERT_CONTEXT_EX struct.