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.

Вернуться на верх