aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/cms.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rpki/cms.py')
-rw-r--r--scripts/rpki/cms.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/rpki/cms.py b/scripts/rpki/cms.py
index 8e14047d..2601f42b 100644
--- a/scripts/rpki/cms.py
+++ b/scripts/rpki/cms.py
@@ -54,7 +54,7 @@ def sign(plaintext, keypair, certs):
if debug >= 2:
print
- print "CMS dump:"
+ print "Signed CMS:"
dumpasn1(cms)
return cms
@@ -68,6 +68,11 @@ def verify(cms, ta):
anything other than successful verification, we raise an exception.
"""
+ if debug >= 2:
+ print
+ print "Verifying CMS:"
+ dumpasn1(cms)
+
ta_filename = "cms.tmp.ta.pem"
f = open(ta_filename, "w")