RPKI Engine 1.0
|
Public Member Functions | |
def | active_ca_detail |
def | ca_details |
def | check_for_updates |
def | construct_sia_uri |
def | create |
def | delete |
def | deprecated_ca_details |
def | issue_response_candidate_ca_details |
def | next_crl_number |
def | next_manifest_number |
def | next_serial_number |
def | parent |
def | pending_ca_details |
def | reissue |
def | rekey |
def | revoke |
def | revoked_ca_details |
Public Attributes | |
gctx | |
parent_id | |
parent_resource_class | |
sia_uri | |
Static Public Attributes | |
int | last_crl_sn = 0 |
int | last_issued_sn = 0 |
int | last_manifest_sn = 0 |
tuple | sql_template |
Internal CA object.
Definition at line 360 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.active_ca_detail | ( | self | ) |
Fetch the active ca_detail for this CA, if any.
Definition at line 400 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.ca_details | ( | self | ) |
Fetch all ca_detail objects that link to this CA object.
Definition at line 386 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.check_for_updates | ( | self, | |
parent, | |||
rc, | |||
cb, | |||
eb | |||
) |
Parent has signaled continued existance of a resource class we already knew about, so we need to check for an updated certificate, changes in resource coverage, revocation and reissue with the same key, etc.
Definition at line 442 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.construct_sia_uri | ( | self, | |
parent, | |||
rc | |||
) |
Construct the sia_uri value for this CA given configured information and the parent's up-down protocol list_response PDU.
Definition at line 429 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.create | ( | cls, | |
parent, | |||
rc, | |||
cb, | |||
eb | |||
) |
Parent has signaled existance of a new resource class, so we need to create and set up a corresponding CA object.
Definition at line 531 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.delete | ( | self, | |
parent, | |||
callback | |||
) |
The list of current resource classes received from parent does not include the class corresponding to this CA, so we need to delete it (and its little dog too...). All certs published by this CA are now invalid, so need to withdraw them, the CRL, and the manifest from the repository, delete all child_cert and ca_detail records associated with this CA, then finally delete this CA itself.
Definition at line 555 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.deprecated_ca_details | ( | self | ) |
Fetch deprecated ca_details for this CA, if any.
Definition at line 407 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.issue_response_candidate_ca_details | ( | self | ) |
Fetch ca_details which are candidates for consideration when processing an up-down issue_response PDU.
Definition at line 421 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.next_crl_number | ( | self | ) |
Allocate a CRL serial number.
Definition at line 597 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.next_manifest_number | ( | self | ) |
Allocate a manifest serial number.
Definition at line 589 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.next_serial_number | ( | self | ) |
Allocate a certificate serial number.
Definition at line 581 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.parent | ( | self | ) |
Fetch parent object to which this CA object links.
Definition at line 379 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.pending_ca_details | ( | self | ) |
Fetch the pending ca_details for this CA, if any.
Definition at line 393 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.reissue | ( | self, | |
cb, | |||
eb | |||
) |
Reissue all current certificates issued by this CA.
Definition at line 642 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.rekey | ( | self, | |
cb, | |||
eb | |||
) |
Initiate a rekey operation for this ca. Generate a new keypair. Request cert from parent using new keypair. Mark result as our active ca_detail. Reissue all child certs issued by this ca using the new ca_detail.
Definition at line 605 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.revoke | ( | self, | |
cb, | |||
eb | |||
) |
Revoke deprecated ca_detail objects associated with this ca.
Definition at line 630 of file rpki/rpkid.py.
def rpki.rpkid.ca_obj.revoked_ca_details | ( | self | ) |
Fetch revoked ca_details for this CA, if any.
Definition at line 414 of file rpki/rpkid.py.
Reimplemented from rpki.sql.sql_persistent.
Definition at line 534 of file rpki/rpkid.py.
int rpki.rpkid.ca_obj.last_crl_sn = 0 [static] |
Definition at line 374 of file rpki/rpkid.py.
int rpki.rpkid.ca_obj.last_issued_sn = 0 [static] |
Definition at line 375 of file rpki/rpkid.py.
int rpki.rpkid.ca_obj.last_manifest_sn = 0 [static] |
Definition at line 376 of file rpki/rpkid.py.
Definition at line 534 of file rpki/rpkid.py.
Definition at line 534 of file rpki/rpkid.py.
Definition at line 447 of file rpki/rpkid.py.
tuple rpki.rpkid.ca_obj.sql_template [static] |
rpki.sql.template( "ca", "ca_id", "last_crl_sn", ("next_crl_update", rpki.sundial.datetime), "last_issued_sn", "last_manifest_sn", ("next_manifest_update", rpki.sundial.datetime), "sia_uri", "parent_id", "parent_resource_class")
Definition at line 365 of file rpki/rpkid.py.