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

celery.security.certificate

X.509 certificates.

class celery.security.certificate.CertStore[source]

Base class for certificate stores.

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

Return certificate iterator.

class celery.security.certificate.Certificate(cert: str)[source]

X.509 certificate.

get_id() str[source]

Serial number/issuer pair uniquely identifies a certificate.

get_issuer() str[source]

Return issuer (CA) as a string.

get_pubkey() DSAPublicKey | EllipticCurvePublicKey | Ed448PublicKey | Ed25519PublicKey | RSAPublicKey[source]
get_serial_number() int[source]

Return the serial number in the certificate.

has_expired() bool[source]

Check if the certificate has expired.

verify(data: bytes, signature: bytes, digest: HashAlgorithm | Prehashed) None[source]

Verify signature for string containing data.

class celery.security.certificate.FSCertStore(path: str)[source]

File system certificate store.