From 929acae3f5d2a704b517905449b86c84e932eb91 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 10 Oct 2007 02:23:35 +0000 Subject: More test options svn path=/scripts/manifests.py; revision=1147 --- scripts/manifests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'scripts') diff --git a/scripts/manifests.py b/scripts/manifests.py index 079d7a3d..bab02a5b 100644 --- a/scripts/manifests.py +++ b/scripts/manifests.py @@ -7,6 +7,8 @@ show_signed_manifest_PEM = False show_signed_manifest_asn1dump = True show_content_2 = False show_content_3 = False +dump_signed_manifest_DER = True +dump_manifest_content_DER = True def dumpasn1(thing): # Save to file rather than using popen4() because dumpasn1 uses @@ -37,6 +39,16 @@ m.sign(keypair = rpki.x509.RSA(Auto_file = "biz-certs/Alice-EE.key"), if show_signed_manifest_PEM: print m.get_PEM() +if dump_manifest_content_DER: + f = open("manifest-content.der", "w") + f.write(m.get_content().toString()) + f.close() + +if dump_signed_manifest_DER: + f = open("signed-manifest.der", "w") + f.write(m.get_DER()) + f.close() + if show_signed_manifest_asn1dump: dumpasn1(m.get_DER()) -- cgit v1.2.3