diff options
author | Rob Austein <sra@hactrn.net> | 2009-07-01 21:28:28 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-07-01 21:28:28 +0000 |
commit | 68783c2421d3f1b22aee8e1db3e013546e0b8061 (patch) | |
tree | 7ec1e03a392292c8eee299595113e93b462cbe3c /myrpki/xml-parse-test.py | |
parent | 2827ead017bf5f55b769834de53a8e03d91c9feb (diff) |
Checkpoint
svn path=/myrpki/Makefile; revision=2557
Diffstat (limited to 'myrpki/xml-parse-test.py')
-rwxr-xr-x | myrpki/xml-parse-test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/myrpki/xml-parse-test.py b/myrpki/xml-parse-test.py index e6a3a410..698f04f4 100755 --- a/myrpki/xml-parse-test.py +++ b/myrpki/xml-parse-test.py @@ -60,7 +60,9 @@ for x in tree.getiterator(tag("roa_request")): print def showpem(label, b64, kind): - cmd = ("openssl", kind, "-noout", "-text", "-inform", "DER", "-certopt", "no_pubkey,no_sigdump") + cmd = ("openssl", kind, "-noout", "-text", "-inform", "DER") + if kind == "x509": + cmd += ("-certopt", "no_pubkey,no_sigdump") p = subprocess.Popen(cmd, stdin = subprocess.PIPE, stdout = subprocess.PIPE) text = p.communicate(input = base64.b64decode(b64))[0] if p.returncode != 0: |