aboutsummaryrefslogtreecommitdiff
path: root/scripts/testroot.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-14 17:22:06 +0000
committerRob Austein <sra@hactrn.net>2007-11-14 17:22:06 +0000
commit8d48fee8d4f99bcd07c8def5fdc4a5cbb302ae35 (patch)
tree50c6596a54b0cba28bdccf5d3ff6f5b0343653a2 /scripts/testroot.py
parentd8cc553708a7cc662d3f33d5efa270ecb2bfa513 (diff)
Rewrite child_cert.reissue() to support the full range of actions it
might need to take, from returning the existing cert unchanged to generating a new cert while revoking the old one. svn path=/scripts/biz-certs/Bob-CA.srl; revision=1294
Diffstat (limited to 'scripts/testroot.py')
-rwxr-xr-xscripts/testroot.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/testroot.py b/scripts/testroot.py
index f92cd24a..7ab5f09c 100755
--- a/scripts/testroot.py
+++ b/scripts/testroot.py
@@ -69,14 +69,14 @@ class issue_pdu(rpki.up_down.issue_pdu):
req_key = self.pkcs10.getPublicKey()
req_sia = self.pkcs10.get_SIA()
crldp = root_base + rpki_issuer.gSKI() + ".crl"
- set_subject_cert(rpki_issuer.issue(keypair = rpki_key,
+ set_subject_cert(rpki_issuer.issue(keypair = rpki_key,
subject_key = req_key,
- serial = int(time.time()),
- sia = req_sia,
- aia = root_cert,
- crldp = crldp,
- resources = resources,
- notAfter = rpki.sundial.datetime.utcnow() + rpki_subject_lifetime))
+ serial = int(time.time()),
+ sia = req_sia,
+ aia = root_cert,
+ crldp = crldp,
+ resources = resources,
+ notAfter = rpki.sundial.datetime.utcnow() + rpki_subject_lifetime))
compose_response(r_msg)
class revoke_pdu(rpki.up_down.revoke_pdu):