From 4298f47f8bf028cd952c0e67d5c5f5d5da229ac6 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 1 Nov 2007 22:09:48 +0000 Subject: Checkpoint svn path=/scripts/rpki/x509.py; revision=1228 --- scripts/testroot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'scripts/testroot.py') 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() -- cgit v1.2.3