CertificateExtensionBasicConstraints#

Added in version 4.3.90.

class CertificateExtensionBasicConstraints(**properties: Any)#

Superclasses: CertificateExtension, Object

A certificate extension that can be used to identify the type of the certificate subject (whether it is a certificate authority or not).

Methods#

class CertificateExtensionBasicConstraints
get_path_len_constraint() int#

Returns the maximum number of CAs that are allowed in the chain below this certificate.

If this is not set, this method returns -1.

Note that this field doesn’t really make sense if is_ca is false.

is_ca() bool#

Returns whether the certificate us a certificate authority (CA) certificate or an end entity certificate.