![CAPolicy.inf 和 Install-AdcsCertificationAuthority](https://linux22.com/image/756408/CAPolicy.inf%20%E5%92%8C%20Install-AdcsCertificationAuthority.png)
我正在创建 2 层 PKI,想知道为什么这么多教程都创建这样的 capolicy.inf
[Version]
Signature="$Windows NT$"
[PolicyStatementExtension]
Policies=InternalPolicy
[InternalPolicy]
OID= 1.2.3.4.1455.67.89.5
URL=http://pki.bedrock.domain/pki/cps.html
[Certsrv_Server]
RenewalKeyLength=4096
RenewalValidityPeriod=Years
RenewalValidityPeriodUnits=20
CRLPeriod=Years
CRLPeriodUnits=20
CRLDeltaPeriod=Days
CRLDeltaPeriodUnits=0
LoadDefaultTemplates=0
然后运行这样的 cmdlet
Install-AdcsCertificationAuthority -CAType StandaloneRootCA -CACommonName "Bedrock Root Certificate Authority" -KeyLength 4096 -HashAlgorithm SHA256 -CryptoProviderName "RSA#Microsoft Software Key Storage Provider" -ValidityPeriod Years -ValidityPeriodUnits 20 -Force
我不太了解 CA,但似乎我们正在加倍努力,如下所示:
CRLPeriod=Years
CRLPeriodUnits=20
和这里
-ValidityPeriod Years -ValidityPeriodUnits 20
我们配置相同的东西。
例子: https://timothygruber.com/pki/deploy-a-pki-on-windows-server-2016-part-3/
而且不只是这个教程,还有很多教程。肯定有些地方我不明白,如果有人能解释一下就好了。