大网数据广告活动
启动与系统组件

Set different validity period for subordinate CA

· 52CE 我爱测

Describes how to set an enterprise subordinate certification authority (CA) to have a different certificate validity period than that of the parent CA.

This article describes how to set an enterprise subordinate certification authority (CA) to have a different certificate validity period than that of the parent CA.

Original KB number:   281557

Summary

You can use the following steps to give a subordinate CA a different certificate validation period than that of the parent CA. This process is divided into the following three steps:

Step 1: Set the validation period on the parent CA. Step 2: Install the subordinate CA. Step 3: Set the validation time back on the parent CA.

  1. Set the validation period on the parent CA. To do this, use the following commands to set the desired validation period on the parent CA that will issue the certificate of the subordinate CA:

    certutil -setreg ca\ValidityPeriod "Weeks" 
    certutil -setreg ca\ValidityPeriodUnits "3" 
    
  2. Install the subordinate CA. Make sure that you use the parent CA that you used in step 1.

  3. Reset the validation period on the parent CA that issued the certificate of the subordinate CA (for example, "2 years", which is the default value). To do this, use the following commands:

    certutil -setreg ca\ValidityPeriod "Years" 
    certutil -setreg ca\ValidityPeriodUnits "2"
    

    [!NOTE] If you run certutil -getreg ca\val* on the subordinate CA, both the ValidityPeriod property and the ValidityPeriodUnits property are still synchronized with the parent CA, even though the subordinate CA certificate is only valid for three weeks.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。