diff options
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() |