aboutsummaryrefslogtreecommitdiff
path: root/ca/tests/yamltest.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-04-23 15:03:57 +0000
committerRob Austein <sra@hactrn.net>2016-04-23 15:03:57 +0000
commit293522be610014907edcd03943b85de9dda9c37b (patch)
tree3c92ea35b2459fadfe0e7b7b8b478113a6e1d920 /ca/tests/yamltest.py
parent9b85950eca0020b4c264904b5eb60719cc6d8339 (diff)
Add yamltest code to set up TAL and root certificate correctly under
new scheme. Rewrite pubd code which was whacking top-level certificate files with names other than "root.cer". svn path=/branches/tk705/; revision=6380
Diffstat (limited to 'ca/tests/yamltest.py')
-rwxr-xr-xca/tests/yamltest.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/ca/tests/yamltest.py b/ca/tests/yamltest.py
index 7b0c0c8d..d467384a 100755
--- a/ca/tests/yamltest.py
+++ b/ca/tests/yamltest.py
@@ -766,6 +766,23 @@ class allocation(object):
print "Running GUI for %s: pid %d process %r" % (self.name, p.pid, p)
return p
+ def extract_root_cert_and_tal(self):
+ """
+ Use rpkic to extract the root certficate and TAL and place them
+ where we can use them to check the published result using rcynic.
+ """
+
+ print
+ self.run_rpkic("extract_root_tal", "--output",
+ os.path.join(test_dir, "root.tal"))
+
+ root_cer = self.path("root.cer")
+ self.run_rpkic("extract_root_certificate", "--output", root_cer)
+ gski = rpki.x509.X509(DER_file = root_cer).gSKI()
+ fn = self.path("publication.rrdp", gski + ".cer")
+ print "Linking", root_cer
+ print "to ", fn
+ os.link(root_cer, fn)
logger = logging.getLogger(__name__)
@@ -910,7 +927,6 @@ try:
else:
for d in db:
-
print
print "Configuring", d.name
print
@@ -962,6 +978,8 @@ try:
d.dump_ghostbusters()
d.dump_router_certificates()
+ db.root.extract_root_cert_and_tal()
+
if args.run_gui:
print
print 'GUI user "root", password "fnord"'