diff options
author | Rob Austein <sra@hactrn.net> | 2007-11-19 16:37:38 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-11-19 16:37:38 +0000 |
commit | 97cb84cc5e516fc3774a0afd1dad78db742554e8 (patch) | |
tree | 20e12a08e8b37b5fe5e444ad007b690e3eb1ff0b /scripts/testpoke.py | |
parent | b3890df536df3806670164472ff2a21556bcfd47 (diff) |
OID cleanup
svn path=/scripts/pkcs10.py; revision=1326
Diffstat (limited to 'scripts/testpoke.py')
-rw-r--r-- | scripts/testpoke.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/testpoke.py b/scripts/testpoke.py index 7c86c726..5031b259 100644 --- a/scripts/testpoke.py +++ b/scripts/testpoke.py @@ -12,7 +12,8 @@ Default configuration file is testpoke.yaml, override with --config option. import traceback, os, time, getopt, sys, lxml, yaml import rpki.resource_set, rpki.up_down, rpki.left_right, rpki.x509 -import rpki.https, rpki.config, rpki.cms, rpki.exceptions, rpki.relaxng +import rpki.https, rpki.config, rpki.cms, rpki.exceptions +import rpki.relaxng, rpki.oids os.environ["TZ"] = "UTC" time.tzset() @@ -81,8 +82,8 @@ 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 = (((1, 3, 6, 1, 5, 5, 7, 48, 5), ("uri", yaml_req["sia"][0])), - ((1, 3, 6, 1, 5, 5, 7, 48, 10), ("uri", yaml_req["sia"][0] + req_key.gSKI() + ".mnf"))) + 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() + ".mnf"))) q_pdu.class_name = yaml_req["class"] q_pdu.pkcs10 = rpki.x509.PKCS10.create_ca(req_key, sia) print query_up_down(q_pdu) |