diff options
author | Rob Austein <sra@hactrn.net> | 2007-11-01 22:09:48 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-11-01 22:09:48 +0000 |
commit | 4298f47f8bf028cd952c0e67d5c5f5d5da229ac6 (patch) | |
tree | df070d077ed03960f06d428c6c4b830ed239455e /scripts/testroot.py | |
parent | 325ae3e879fee2a847b61a94b799aae5ce29fdfc (diff) |
Checkpoint
svn path=/scripts/rpki/x509.py; revision=1228
Diffstat (limited to 'scripts/testroot.py')
-rwxr-xr-x | scripts/testroot.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/testroot.py b/scripts/testroot.py index a3b644d0..ba6cf809 100755 --- a/scripts/testroot.py +++ b/scripts/testroot.py @@ -20,11 +20,15 @@ root_cert = root_base + "testroot.cer" def get_subject_cert(): try: - return rpki.x509.X509(Auto_file = rpki_subject_filename) + x = rpki.x509.X509(Auto_file = rpki_subject_filename) + print "Read subject cert" + return x except IOError: + print "No subject cert" return None def set_subject_cert(cert): + print "Writing subject cert" f = open(rpki_subject_filename, "wb") f.write(cert.get_DER()) f.close() |