Skip to content

Instantly share code, notes, and snippets.

@Celoxocis
Last active February 23, 2018 13:11
Show Gist options
  • Save Celoxocis/72bcb83f304aeb0e895ad46dc9c74e01 to your computer and use it in GitHub Desktop.
Save Celoxocis/72bcb83f304aeb0e895ad46dc9c74e01 to your computer and use it in GitHub Desktop.
# On RootCA
Add-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools
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
# On SubCA
Add-WindowsFeature Adcs-Cert-Authority -IncludeManagementTools
Install-AdcsCertificationAuthority -CAType EnterpriseSubordinateCA -CACommonName "Bedrock Enterprise Certificate Authority" -KeyLength 4096 -HashAlgorithm SHA256 -CryptoProviderName "RSA#Microsoft Software Key Storage Provider" -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment