To set it to five years, run the following:
certutil -setreg ca\ValidityPeriod = "Years"
certutil -setreg ca\ValidityPeriodUnits = 5
net stop certsvc && net start certsvc
Brian
"Liran" <Li...@discussions.microsoft.com> wrote in message
news:F70493DE-DCB5-4781...@microsoft.com...
the only problem I have is that it didn't work :(
the certificates still have a 2 year validity period, although they are
created from a template which has a 5 year validity period, and the CA itself
is valid for 20 years ...
I've tried rebooting & re-creating the template, but it didn't work.
any suggestions ?
Liran
> I tried your suggestion and the command line actually has to contain both
> parameters at once:
> certutil -setreg ca\ValidityPeriod="Years" ca\ValidityPeriodUnits=5
Actually, no it does not. It is perfectly acceptable to run them as Brian
posted. If you copied and pasted the commands from Brian's post and got an
error that's likely because your news reader converted the double quotes to
curly quotes which won't work.
>
> the only problem I have is that it didn't work :(
> the certificates still have a 2 year validity period, although they are
> created from a template which has a 5 year validity period, and the CA itself
> is valid for 20 years ...
> I've tried rebooting & re-creating the template, but it didn't work.
What's the lifetime remaining on the CA certificate itself?
--
Paul Adare
MVP - Identity Lifecycle Manager
http://www.identit.ca
"Liran" <Li...@discussions.microsoft.com> wrote in message
news:03A5D079-8CBB-4066...@microsoft.com...
certutil -setreg ca\ValidityPeriod "Years"
certutil -setreg ca\ValidityPeriodUnits "5"
and then restart the CA.
After this the CA should issue certificate (validity period would be minimum
of (certificate template settings, above registry settings, CA's own
certificate validity period)).
"Liran" <Li...@discussions.microsoft.com> wrote in message
news:F70493DE-DCB5-4781...@microsoft.com...