tiny_ca.exc module

exception tiny_ca.exc.CertNotFound[source]

Bases: CryptoException

Return type:

None

__init__()[source]
Return type:

None

exception tiny_ca.exc.CryptoException(message)[source]

Bases: Exception

Raised when certificate validation fails.

Parameters:

message (str)

Return type:

None

__init__(message)[source]
Parameters:

message (str)

Return type:

None

message: str
exception tiny_ca.exc.DBNotInitedError[source]

Bases: CryptoException

Return type:

None

__init__()[source]
Return type:

None

exception tiny_ca.exc.ErrorLoadCert(path_to_file, exc)[source]

Bases: CryptoException

Parameters:
Return type:

None

__init__(path_to_file, exc)[source]
Parameters:
Return type:

None

exception tiny_ca.exc.FileAlreadyExists(path_save_cert)[source]

Bases: CryptoException

Parameters:

path_save_cert (Path)

Return type:

None

__init__(path_save_cert)[source]
Parameters:

path_save_cert (Path)

Return type:

None

exception tiny_ca.exc.InvalidRangeTimeCertificate(valid_from, valid_to, now)[source]

Bases: CryptoException

Parameters:
Return type:

None

__init__(valid_from, valid_to, now)[source]
Parameters:
Return type:

None

exception tiny_ca.exc.IsNotFile(path_to_file)[source]

Bases: CryptoException

Parameters:

path_to_file (Path | str)

Return type:

None

__init__(path_to_file)[source]
Parameters:

path_to_file (Path | str)

Return type:

None

exception tiny_ca.exc.NotExistCertFile(path_to_file)[source]

Bases: CryptoException

Parameters:

path_to_file (Path | str)

Return type:

None

__init__(path_to_file)[source]
Parameters:

path_to_file (Path | str)

Return type:

None

exception tiny_ca.exc.NotUniqueCertOwner(common_name)[source]

Bases: CryptoException

Parameters:

common_name (str)

Return type:

None

__init__(common_name)[source]
Parameters:

common_name (str)

Return type:

None

exception tiny_ca.exc.ValidationCertError(message)[source]

Bases: CryptoException

Parameters:

message (str)

Return type:

None

__init__(message)[source]
Parameters:

message (str)

Return type:

None

exception tiny_ca.exc.WrongType(wrong_type, allowed_types=('.key', '.pem', '.csr'))[source]

Bases: CryptoException

Parameters:
Return type:

None

__init__(wrong_type, allowed_types=('.key', '.pem', '.csr'))[source]
Parameters:
Return type:

None