aboutsummaryrefslogtreecommitdiff
path: root/myrpki/xml-parse-test.py
diff options
context:
space:
mode:
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: