hfc.fabric_ca.certificateService

Module Contents

Classes

CertificateService(client)

hfc.fabric_ca.certificateService._logger
class hfc.fabric_ca.certificateService.CertificateService(client)

Bases: object

getCertificates(self, registrar, id=None, aki=None, serial=None, revoked_start=None, revoked_end=None, expired_start=None, expired_end=None, notexpired=None, notrevoked=None, ca=None)

The caller will be able to view certificates that it owns. In addition, if the caller has hf.Registrar.Roles or hf.Revoker attribute, it will be able to view certificates for identities that have

affiliations equal to or below the caller’s affiliation.

Parameters
  • registrar

    Required. The identity of the registrar (i.e. who is performing the revocation) signing certificate, hash

    algorithm and signature algorithm

  • id – The enrollment ID that uniquely identifies an identity (Default value = None)

  • aki – Authority Key Identifier string, hex encoded, for the specific certificate (Default value = None)

  • serial – The serial number for a certificate (Default value = None)

  • revoked_start – Get revoked certificates starting at the specified time, either as timestamp (RFC3339 format) or duration (-30d) (Default value = None)

  • revoked_end – Get revoked certificates before the specified time, either as timestamp * (RFC3339 format) or duration (-15d) (Default value = None)

  • expired_start – Get expired certificates starting at the specified time, either as timestamp (RFC3339 format) or duration (-30d) (Default value = None)

  • expired_end – Get expired certificates before the specified time, either as timestamp (RFC3339 format) or duration (-15d) (Default value = None)

  • notexpired – Don’t return expired certificates (Default value = None)

  • notrevoked – Don’t return revoked certificates (Default value = None)

  • ca – The name of the CA to direct this request to within the server, or the default CA if not specified (Default value = None)

Returns

result

Raises
  • RequestException – errors in requests.exceptions

  • ValueError – Failed response, json parse error, args missing