rpkimancer.sigobj.roa module¶
RPKI ROA implementation - RFC6482.
- class rpkimancer.sigobj.roa.RouteOriginAttestationContentType(*, version=0, as_id, ip_address_blocks)¶
Bases:
EncapsulatedContentType
encapContentInfo for RPKI ROAs - RFC6482.
- Parameters:
version (int) –
as_id (int) –
ip_address_blocks (List[RoaNetworkInfo]) –
- asn1_definition: ASN1Class = <ct-routeOriginAuthz ([CONTENT-TYPE] CLASS): {'Type': <Type ([RouteOriginAttestation] SEQUENCE)>, 'id': (1, 2, 840, 113549, 1, 9, 16, 1, 24)}>¶
- file_ext: str = 'roa'¶
- as_resources = None¶
- property ip_resources: Iterable[Union[Tuple[Literal[4, 6], Literal['INHERIT']], IPv4Network, IPv6Network, Tuple[IPv4Address, IPv4Address], Tuple[IPv6Address, IPv6Address]]]¶
Get the IP Address Resources covered by this ROA.
- to_txt()¶
Get default text serialization.
- Return type:
str
- to_json()¶
Serialize as JSON.
- Return type:
str
- class rpkimancer.sigobj.roa.RouteOriginAttestation(issuer, file_name=None, *args, **kwargs)¶
Bases:
SignedObject
[RouteOriginAttestationContentType
]CMS ASN.1 ContentInfo for RPKI ROAs.
- Parameters:
issuer (CertificateAuthority) –
file_name (Optional[str]) –
args (Any) –
kwargs (Any) –
- econtent_type¶
alias of
RouteOriginAttestationContentType