pdftools_sdk.crypto.providers.certificate

Classes

Certificate(handle)

A X.509 certificate

class pdftools_sdk.crypto.providers.certificate.Certificate(handle)[source]

Bases: _NativeObject

A X.509 certificate

property name: str | None

The name (subject) of the certificate

The common name (CN) of the person or authority who owns the certificate.

Returns:

Optional[str]

property subject: str

The subject of the certificate

The distinguished name (DN) of the person or authority who owns the certificate. Formatted according to RFC 4514.

Returns:

str

property issuer: str | None

The name of the certificate’s issuer (CA)

The common name (CN) of the certificate authority (CA) who issued the certificate.

Returns:

Optional[str]

property fingerprint: str | None

The certificate’s fingerprint

The hex string representation of the certificate’s SHA-1 digest.

Returns:

Optional[str]

property has_private_key: bool

Whether the cryptographic provider has a private key for the certificate.

Note that whether the private key is found and whether it can actually be used for signing may depend on the provider’s login state.

Returns:

bool