0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Windows Serverの認証局で証明書の有効期限を変更する

Last updated at Posted at 2025-02-11

Windowsサーバーの証明機関機能では、証明書テンプレートで有効期限を設定しても、強制的に期限が2年になってしまいます。これは、レジストリー上の設定が反映されていることが原因です。
この記事では、有効期限の変更に必要なレジストリの場所をご紹介します。

レジストリの場所

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\CertSvc\Configuration\<CA名>

変更場所

ValidityPeriod (REG_SZ) / 日付単位

Days/Weeks/Months/Yearsから選択

ValidityPeriodUnits(REG_DWORD) / 期間

上記で設定した単位に対する有効期限

設定例
ValidityPeriod = Years
ValidityPeriodUnits = 5
→5年が有効期限

設定反映

以下を管理者権限で実行

net stop certsvc
net start certsvc

参考
Change the expiration date of certificates that are issued by Certificate Authority

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?