diff options
author | Rob Austein <sra@hactrn.net> | 2014-02-20 23:03:11 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-02-20 23:03:11 +0000 |
commit | 401bbea99c1ba43ae0987b6346c65293a8efafa0 (patch) | |
tree | bde4f7e451ab6795b211631cb2e62db1ac07d481 /rpkid/rpki/irdb | |
parent | 4c537cad182aa3f4f5aea9322759cea88e2210bc (diff) |
Whack RSA-specific code to a more general API using PrivateKey and
PublicKey classes, with RSA and ECDSA as subclasses extending
PrivateKey. Revised API not necessarily in final form yet, but good
enough for smoketest to generate ECDSA keys for testing router certs.
svn path=/branches/tk671/; revision=5679
Diffstat (limited to 'rpkid/rpki/irdb')
-rw-r--r-- | rpkid/rpki/irdb/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpkid/rpki/irdb/models.py b/rpkid/rpki/irdb/models.py index 8e492409..6772b542 100644 --- a/rpkid/rpki/irdb/models.py +++ b/rpkid/rpki/irdb/models.py @@ -401,7 +401,7 @@ class EECertificate(Certificate): self.private_key = rpki.x509.RSA.generate(quiet = True) self.certificate = self.issuer.certify( subject_name = self.subject_name, - subject_key = self.private_key.get_RSApublic(), + subject_key = self.private_key.get_public(), validity_interval = ee_certificate_lifetime, is_ca = False) |