aboutsummaryrefslogtreecommitdiff
path: root/myrpki/xml-parse-test.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2009-07-08 04:00:22 +0000
committerRob Austein <sra@hactrn.net>2009-07-08 04:00:22 +0000
commit38301e77169743e4d6421aa7ee3dd966253473e1 (patch)
tree2a802ce312c23fea85876132f83510939643592b /myrpki/xml-parse-test.py
parent6e1b1ace976500a044457e6eac7e9ac6a3f229d7 (diff)
Checkpoint
svn path=/myrpki/Makefile; revision=2596
Diffstat (limited to 'myrpki/xml-parse-test.py')
-rwxr-xr-xmyrpki/xml-parse-test.py24
1 files changed, 11 insertions, 13 deletions
diff --git a/myrpki/xml-parse-test.py b/myrpki/xml-parse-test.py
index 479232e7..bf6ffd88 100755
--- a/myrpki/xml-parse-test.py
+++ b/myrpki/xml-parse-test.py
@@ -70,21 +70,19 @@ def showpem(label, b64, kind):
print label, text
for x in tree.getiterator(tag("child")):
- ta = x.findtext(tag("bpki_ta"))
- if ta:
- showpem("Child", ta, "x509")
+ cert = x.findtext(tag("bpki_certificate"))
+ if cert:
+ showpem("Child", cert, "x509")
for x in tree.getiterator(tag("parent")):
- print "Parent URI:", x.get("uri")
- ta = x.findtext(tag("bpki_ta"))
- if ta:
- showpem("Parent", ta, "x509")
-
-for x in tree.getiterator(tag("repository")):
- print "Repository URI:", x.get("uri")
- ta = x.findtext(tag("bpki_ta"))
- if ta:
- showpem("Repository", ta, "x509")
+ print "Parent URI:", x.get("parent_service_uri")
+ cert = x.findtext(tag("parent_bpki_certificate"))
+ if cert:
+ showpem("Parent", cert, "x509")
+ print "Repository URI:", x.get("repository_service_uri")
+ cert = x.findtext(tag("repository_bpki_certificate"))
+ if cert:
+ showpem("Repository", cert, "x509")
ca = tree.findtext(tag("bpki_ca_certificate"))
if ca: