If you want to issue a certificate with 20 years expiration, run this commands:
1 2 3 4 5 6 7 |
certutil -setreg ca\ValidityPeriodUnits 20 certutil -setreg ca\ValidityPeriod "Years" net stop certsvc net start certsvc |
To issues a certificate with a template, run this command
1 |
certreq -submit -attrib "CertificateTemplate:CertificateTemplateName" CSRfile.csr |