A unified and flexible solution for integrating CRL and OCSP into PKI applications