This document describes the current stable version of Celery (5.6). For development docs, go here.

# `celery.security.certificate`

X.509 certificates.

class celery.security.certificate.CertStore

  Base class for certificate stores.

  add_cert(cert: Certificate) → None
  itercerts() → Iterator[Certificate]

    Return certificate iterator.

class celery.security.certificate.Certificate(cert: str)

  X.509 certificate.

  get_id() → str

    Serial number/issuer pair uniquely identifies a certificate.

  get_issuer() → str

    Return issuer (CA) as a string.

  get_pubkey() → DSAPublicKey | EllipticCurvePublicKey | Ed448PublicKey | Ed25519PublicKey | RSAPublicKey
  get_serial_number() → int

    Return the serial number in the certificate.

  has_expired() → bool

    Check if the certificate has expired.

  verify(data: bytes, signature: bytes, digest: HashAlgorithm | Prehashed) → None

    Verify signature for string containing data.

class celery.security.certificate.FSCertStore(path: str)

  File system certificate store.