RPKI Engine
1.0
|
Classes | |
class | CMS_object |
class | CRL |
class | DeadDrop |
class | DER_CMS_object |
class | DER_object |
class | Ghostbuster |
class | PEM_converter |
class | PKCS10 |
class | ROA |
class | RSA |
class | RSApublic |
class | SignedManifest |
class | X509 |
class | XML_CMS_object |
Functions | |
def | _find_xia_uri |
def | base64_with_linebreaks |
def | calculate_SKI |
def | POWify_OID |
One X.509 implementation to rule them all... ...and in the darkness hide the twisty maze of partially overlapping X.509 support packages in Python. There are several existing packages, none of which do quite what I need, due to age, lack of documentation, specialization, or lack of foresight on somebody's part (perhaps mine). This module attempts to bring together the functionality I need in a way that hides at least some of the nasty details. This involves a lot of format conversion. $Id: x509.py 4028 2011-10-07 23:42:24Z sra $ Copyright (C) 2009--2011 Internet Systems Consortium ("ISC") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Portions copyright (C) 2007--2008 American Registry for Internet Numbers ("ARIN") Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
def rpki::x509::_find_xia_uri | ( | extension, | |
name | |||
) | [private] |
Find a rsync URI in an SIA or AIA extension. Returns the URI if found, otherwise None.
Definition at line 109 of file x509.py.
Referenced by rpki::x509::DER_object::get_aia_uri(), rpki::x509::DER_object::get_sia_directory_uri(), and rpki::x509::DER_object::get_sia_manifest_uri().
def rpki::x509::base64_with_linebreaks | ( | der | ) |
Encode DER (really, anything) as Base64 text, with linebreaks to keep the result (sort of) readable.
Definition at line 51 of file x509.py.
Referenced by rpki::x509::DER_object::get_Base64(), and rpki::x509::PEM_converter::to_PEM().
def rpki::x509::calculate_SKI | ( | public_key_der | ) |
Calculate the SKI value given the DER representation of a public key, which requires first peeling the ASN.1 wrapper off the key.
Definition at line 60 of file x509.py.
Referenced by rpki::x509::RSA::get_SKI(), and rpki::x509::RSApublic::get_SKI().