aboutsummaryrefslogtreecommitdiff
path: root/scripts/rpki/x509.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2008-01-26 02:46:31 +0000
committerRob Austein <sra@hactrn.net>2008-01-26 02:46:31 +0000
commit692a976a5197930ee0c9e0b5dec6f9c3bb721456 (patch)
treeeb89952b0704da2e4bd28ddd70aad189ea44177b /scripts/rpki/x509.py
parentc73cea1829135747bc3331b663cd4460e81538b7 (diff)
Implement "rekey" and "revoke" left-right controls
svn path=/scripts/manifests.py; revision=1509
Diffstat (limited to 'scripts/rpki/x509.py')
-rw-r--r--scripts/rpki/x509.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rpki/x509.py b/scripts/rpki/x509.py
index d61b8449..4d902351 100644
--- a/scripts/rpki/x509.py
+++ b/scripts/rpki/x509.py
@@ -623,7 +623,7 @@ class SignedManifest(DER_object):
m.fromString(s)
self.content = m
- def build(self, serial, nextUpdate, names_and_objs, keypair, certs, version = 0):
+ def build(self, serial, thisUpdate, nextUpdate, names_and_objs, keypair, certs, version = 0):
"""Build the inner content of this manifest and sign it with CMS."""
filelist = []
for name, obj in names_and_objs:
@@ -634,7 +634,7 @@ class SignedManifest(DER_object):
m = rpki.manifest.Manifest()
m.version.set(version)
m.manifestNumber.set(serial)
- m.thisUpdate.set(rpki.sundial.datetime.utcnow().toGeneralizedTime())
+ m.thisUpdate.set(thisUpdate.toGeneralizedTime())
m.nextUpdate.set(nextUpdate.toGeneralizedTime())
m.fileHashAlg.set((2, 16, 840, 1, 101, 3, 4, 2, 1)) # id-sha256
m.fileList.set(filelist)