diff options
author | Rob Austein <sra@hactrn.net> | 2008-01-26 02:46:31 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2008-01-26 02:46:31 +0000 |
commit | 692a976a5197930ee0c9e0b5dec6f9c3bb721456 (patch) | |
tree | eb89952b0704da2e4bd28ddd70aad189ea44177b /scripts/manifests.py | |
parent | c73cea1829135747bc3331b663cd4460e81538b7 (diff) |
Implement "rekey" and "revoke" left-right controls
svn path=/scripts/manifests.py; revision=1509
Diffstat (limited to 'scripts/manifests.py')
-rw-r--r-- | scripts/manifests.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/manifests.py b/scripts/manifests.py index cdfce5c7..df8bc2d4 100644 --- a/scripts/manifests.py +++ b/scripts/manifests.py @@ -45,10 +45,13 @@ if test_empty_manifest: else: names_and_objs = [(fn, rpki.x509.X509(Auto_file = fn)) for fn in glob.glob("resource-cert-samples/*.cer")] +now = rpki.sundial.datetime.utcnow() + m = rpki.x509.SignedManifest() m.build( serial = 17, - nextUpdate = rpki.sundial.datetime.utcnow() + rpki.sundial.timedelta(days = 1), + thisUpdate = now, + nextUpdate = now + rpki.sundial.timedelta(days = 1), names_and_objs = names_and_objs, keypair = rpki.x509.RSA(Auto_file = "biz-certs/Alice-EE.key"), certs = rpki.x509.X509_chain(Auto_files = ("biz-certs/Alice-EE.cer", "biz-certs/Alice-CA.cer"))) |