docs: private static String encodeCacheKey(OcspResponseCacheKey ocsp_cache_key)
    {
      try
      {
        DigestCalculator digest = new SHA1DigestCalculator();
        AlgorithmIdentifier algo = digest.getAlgorithmIdentifier();
        ASN1OctetString nameHash = ASN1OctetString.getInstance(ocsp_cache_key.nameHash);
        ASN1OctetString keyHash = ASN1OctetString.getInstance(ocsp_cache_key.keyHash);
        ASN1Integer snumber = new ASN1Integer(ocsp_cache_key.serialNumber);
        CertID cid = new CertID(algo, nameHash, keyHash, snumber);
        return Base64.encodeBase64String(cid.toASN1Primitive().getEncoded());
      }
      catch (Exception ex)
      {
        LOGGER.debug("Failed to encode cache key to base64 encoded cert id");
      }
      return null;
    }