s4-backupkey: Cert lifetime of 365 days, not secs
authorArvid Requate <requate@univention.de>
Mon, 7 Jul 2014 15:59:29 +0000 (17:59 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 25 Feb 2015 00:08:10 +0000 (01:08 +0100)
commit89803009b957b980818aa971a0f5dd14f75cbbe1
treeebf50e842fd04a7f0227519a998db223a41238ca
parent9b2ff26c893e5748d12d7a37a93eef7b1f4b1a1b
s4-backupkey: Cert lifetime of 365 days, not secs

hx509_ca_tbs_set_notAfter_lifetime expects the lifetime value in
in seconds. The Windows 7 client didn't seem to care that the lifetime
was only 6'03''. Two other TODOs in this implementation:

* Since notBefore is not set explicietely to "now", the heimdal code
  default of now-(24 hours) is applied.

* Server side validity checks and cert renewal are missing.

Signed-off-by: Arvid Requate <requate@univention.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/rpc_server/backupkey/dcesrv_backupkey.c