aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2007-11-12 20:01:58 +0000
committerRob Austein <sra@hactrn.net>2007-11-12 20:01:58 +0000
commit3f13483f815eca28bfd4ab3e8ff4e61a86ead0ab (patch)
tree0e114c2d344e6628983c71f13f647274dbf3ae19 /scripts
parenta3c7976d7874577dc1847040cac283ac5a42a688 (diff)
Timestamp notes
svn path=/scripts/README; revision=1277
Diffstat (limited to 'scripts')
-rw-r--r--scripts/README11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/README b/scripts/README
index d22bd2f5..b5cdb458 100644
--- a/scripts/README
+++ b/scripts/README
@@ -58,6 +58,17 @@ Current TO DO list:
used in ASN.1, and the timestamps used in MySQL. Need a unifying
class to hide all this nastiness.
+ POW.pkix provides conversion functions for ASN.1. MySQL timestamps
+ appear to map to Python datetime objects. One can convert between
+ datetime and time (seconds since epoch) objects using:
+
+ time_object = time.mktime(datetime_object.timetuple())
+ datetime_object = datetime.datetime.fromtimestamp(int(time_object))
+
+ if one is willing to discard fractional seconds (which we probably
+ are in this case, as they're not useful with ASN.1). No doubt there
+ would be a way to preserserve fractional seconds if we cared.
+
- Subsetting (req_* attributes in up-down protocol)
- Revocation and CRL generation