diff options
author | Rob Austein <sra@hactrn.net> | 2014-02-21 02:05:36 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-02-21 02:05:36 +0000 |
commit | a25c336c1d7752b60a251fcce51f2fbd81d930bf (patch) | |
tree | 51d7cadf92d447a8f22d7ea00ce618ad9305ea83 /rpkid/rpki/irdb/zookeeper.py | |
parent | 401bbea99c1ba43ae0987b6346c65293a8efafa0 (diff) |
Add router certificate support to yamltest, rpkic, etc.
svn path=/branches/tk671/; revision=5680
Diffstat (limited to 'rpkid/rpki/irdb/zookeeper.py')
-rw-r--r-- | rpkid/rpki/irdb/zookeeper.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/rpkid/rpki/irdb/zookeeper.py b/rpkid/rpki/irdb/zookeeper.py index 9f7cd15e..339503fb 100644 --- a/rpkid/rpki/irdb/zookeeper.py +++ b/rpkid/rpki/irdb/zookeeper.py @@ -1642,7 +1642,7 @@ class Zookeeper(object): pkcs10 = rpki.x509.PKCS10(Base64 = req.text) router_id = long(req.get("router_id")) - asns = req.get("asn") + asns = rpki.resource_set.resource_set_as(req.get("asn")) if not valid_until: valid_until = req.get("valid_until") @@ -1656,13 +1656,11 @@ class Zookeeper(object): pkcs10.check_valid_request_router() - gski = pkcs10.gSKI() - ee_request = self.resource_ca.ee_certificate_requests.create( - pkcs10 = pkcs10, gski = gski, valid_until = valid_until, router_id = router_id) + pkcs10 = pkcs10, + gski = pkcs10.gSKI(), + valid_until = valid_until, + router_id = router_id) for range in asns: ee_request.asns.create(start_as = str(range.min), end_as = str(range.max)) - - self.log("Added Router certificate request g(SKI) %s router-id %d ASNs %s" % ( - gski, router_id, asns)) |