aboutsummaryrefslogtreecommitdiff
path: root/rpkid/tests/testpoke.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2012-10-09 22:12:15 +0000
committerRob Austein <sra@hactrn.net>2012-10-09 22:12:15 +0000
commitb22f2d2a13dc31fdde98c274c324f8debf36434d (patch)
treee3a5be91fc6bf83b185aad27ab92415054a4b86b /rpkid/tests/testpoke.py
parent131e06531d8b35f08095672a85dc1d67e946266e (diff)
Whack SIA and AIA code to use POW instead of POW.pkix. Whack
smoketest repository layout to silence (correct) rcynic whining about objects not in manifest. svn path=/branches/tk274/; revision=4761
Diffstat (limited to 'rpkid/tests/testpoke.py')
-rw-r--r--rpkid/tests/testpoke.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/rpkid/tests/testpoke.py b/rpkid/tests/testpoke.py
index 1f7713a1..ad20992d 100644
--- a/rpkid/tests/testpoke.py
+++ b/rpkid/tests/testpoke.py
@@ -138,10 +138,12 @@ def do_list():
def do_issue():
q_pdu = rpki.up_down.issue_pdu()
req_key = get_PEM("cert-request-key", rpki.x509.RSA, yaml_req) or cms_key
- sia = ((rpki.oids.name2oid["id-ad-caRepository"], ("uri", yaml_req["sia"][0])),
- (rpki.oids.name2oid["id-ad-rpkiManifest"], ("uri", yaml_req["sia"][0] + req_key.gSKI() + ".mft")))
q_pdu.class_name = yaml_req["class"]
- q_pdu.pkcs10 = rpki.x509.PKCS10.create_ca(req_key, sia)
+ q_pdu.pkcs10 = rpki.x509.PKCS10.create(
+ keypair = req_key,
+ is_ca = True,
+ caRepository = yaml_req["sia"][0],
+ rpkiManifest = yaml_req["sia"][0] + req_key.gSKI() + ".mft")
query_up_down(q_pdu)
def do_revoke():