Package cross_certify


Functions

def usage

Variables

tuple cert = rpki.x509.X509(POWpkix = x)
tuple child = rpki.x509.X509(Auto_file = a)
tuple f = open(serial_file, "r")
tuple keypair = rpki.x509.RSA(Auto_file = a)
tuple lifetime = rpki.sundial.timedelta(days = 30)
 notAfter = now+lifetime
tuple now = rpki.sundial.now()
 output = None
tuple parent = rpki.x509.X509(Auto_file = a)
tuple serial = f.read()
 serial_file = a
tuple x = POW.pkix.Certificate()


Detailed Description

Cross-certification tool to issue a new certificate based on an old
one that was issued by somebody else.  The point of the exercise is to
end up with a valid certificate in our own BPKI which has the same
subject name and subject public key as the one we're replacing.

Much of this code lifted from rpki.x509.X509.issue(), but this is a
sufficiently different purpose that it's probably not worth
refactoring.

Usage: python cross_certify.py { -i | --in     } input_cert
                             { -c | --ca     } issuing_cert
                             { -k | --key    } issuing_cert_key
                             { -s | --serial } serial_filename
                             [ { -h | --help } ]
                             [ { -o | --out  }     filename  (default: stdout)  ]
                             [ { -l | --lifetime } timedelta (default: 30 days) ]

$Id: cross_certify.py 1995 2008-07-15 17:38:45Z sra $

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.

Function Documentation

def cross_certify.usage (   code  ) 

Definition at line 42 of file cross_certify.py.


Variable Documentation

tuple cross_certify.cert = rpki.x509.X509(POWpkix = x)

Definition at line 96 of file cross_certify.py.

tuple cross_certify.child = rpki.x509.X509(Auto_file = a)

Definition at line 55 of file cross_certify.py.

tuple cross_certify::f = open(serial_file, "r")

Definition at line 73 of file cross_certify.py.

tuple cross_certify.keypair = rpki.x509.RSA(Auto_file = a)

Definition at line 61 of file cross_certify.py.

Definition at line 47 of file cross_certify.py.

Definition at line 70 of file cross_certify.py.

tuple cross_certify.now = rpki.sundial.now()

Definition at line 69 of file cross_certify.py.

Definition at line 46 of file cross_certify.py.

tuple cross_certify.parent = rpki.x509.X509(Auto_file = a)

Definition at line 59 of file cross_certify.py.

int cross_certify::serial = f.read()

Definition at line 74 of file cross_certify.py.

Definition at line 63 of file cross_certify.py.

tuple cross_certify.x = POW.pkix.Certificate()

Definition at line 80 of file cross_certify.py.


Generated on Wed Jul 16 00:59:36 2008 for RPKI Engine by  doxygen 1.5.6