aboutsummaryrefslogtreecommitdiff
path: root/rpkid/rpki/left_right.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-06-21 07:55:01 +0000
committerRob Austein <sra@hactrn.net>2008-06-21 07:55:01 +0000
commitf042470c46e688538968e6d4c7ad0d7a1356e6dd (patch)
tree3ff26ef95ffe322d6eb04b09c34b8f8abbdc5412 /rpkid/rpki/left_right.py
parent18b0209c26e1d20218f98c379d03c7002b7224f7 (diff)
Teach rootd to generate manifests
svn path=/rpkid/rootd.py; revision=1912
Diffstat (limited to 'rpkid/rpki/left_right.py')
-rw-r--r--rpkid/rpki/left_right.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/rpkid/rpki/left_right.py b/rpkid/rpki/left_right.py
index 55c22dfc..b6272194 100644
--- a/rpkid/rpki/left_right.py
+++ b/rpkid/rpki/left_right.py
@@ -269,10 +269,8 @@ class bsc_elt(data_elt):
"""
if q_pdu.generate_keypair:
assert q_pdu.key_type in (None, "rsa") and q_pdu.hash_alg in (None, "sha256")
- keypair = rpki.x509.RSA()
- keypair.generate(keylength = q_pdu.key_length or 2048)
- self.private_key_id = keypair
- self.pkcs10_request = rpki.x509.PKCS10.create(keypair)
+ self.private_key_id = rpki.x509.RSA.generate(keylength = q_pdu.key_length or 2048)
+ self.pkcs10_request = rpki.x509.PKCS10.create(self.private_key_id)
r_pdu.pkcs10_request = self.pkcs10_request
class parent_elt(data_elt):
@@ -676,8 +674,7 @@ class route_origin_elt(data_elt):
resources = rpki.resource_set.resource_bag(v4 = v4, v6 = v6)
- keypair = rpki.x509.RSA()
- keypair.generate()
+ keypair = rpki.x509.RSA.generate()
sia = ((rpki.oids.name2oid["id-ad-signedObject"], ("uri", self.roa_uri(ca, keypair))),)