Three functions duplicate certificates. CertDuplicateCertificateContext duplicates a certificate context by incrementing its reference count and returning a pointer to the context. CertDuplicateCRLContext duplicates a CRL context, and CertDuplicateCTLContext duplicates a CTL context. Duplicates of CRL and CTL contexts are also made by increasing their reference counts. Certificates that are duplicate contexts created with any of the CertDuplicate functions must be freed using the appropriate CertFree function.