rpkimancer.sigobj.mft module¶
RPKI Manifest implementation - RFC6486.
- class rpkimancer.sigobj.mft.RpkiManifestContentType(*, version=0, manifest_number=0, this_update, next_update, file_list)¶
Bases:
EncapsulatedContentType
encapContentInfo for RPKI Manifests - RFC6486.
- Parameters:
version (int) –
manifest_number (int) –
this_update (datetime.datetime) –
next_update (datetime.datetime) –
file_list (FileListInfo) –
- asn1_definition: ASN1Class = <ct-rpkiManifest ([CONTENT-TYPE] CLASS): {'Type': <Type ([Manifest] SEQUENCE)>, 'id': (1, 2, 840, 113549, 1, 9, 16, 1, 26)}>¶
- file_ext: str = 'mft'¶
- as_resources = 'INHERIT'¶
- ip_resources: Final = ((4, 'INHERIT'), (6, 'INHERIT'))¶
- static generalized_time(timestamp)¶
Construct ASN.1 GeneralizedTime data from python datetime.
- Parameters:
timestamp (datetime) –
- Return type:
Tuple[Optional[str], …]
- hash_bitstring(contents)¶
Construct ASN.1 BIT STRING of a hash over file contents.
- Parameters:
contents (bytes) –
- Return type:
Tuple[int, int]
- class rpkimancer.sigobj.mft.RpkiManifest(issuer, file_name=None, *args, **kwargs)¶
Bases:
SignedObject
[RpkiManifestContentType
]CMS ASN.1 ContentInfo for RPKI Manifests.
- Parameters:
issuer (CertificateAuthority) –
file_name (Optional[str]) –
args (Any) –
kwargs (Any) –
- econtent_type¶
alias of
RpkiManifestContentType