PowerShell-Install Certificate Authority (CA)

Please refer to the following PowerShell Script to install and configure Microsoft Internal Root CA for my lab

#Install Microsoft CA, including the Management Tools 
Install-WindowsFeature AD-Certificate -IncludeManagementTools 

#Configure the Root CA 
Install-AdcsCertificationAuthority -CACommonName "Aventis Root CA" -CAType EnterpriseRootCa `
    -HashAlgorithmName SHA256 -KeyLength 2048 -ValidityPeriod Years -ValidityPeriodUnits 10 

#Install Certificate Authority Web Enrollment 
Install-WindowsFeature ADCS-Web-Enrollment

#Configure Certificate Authority Web Enrollment 
Install-AdcsWebEnrollment 

#Addtional IIS Web Role will be installed during Certificate Authority Web Enrollment
#But IIS Management Console was not installed, and we need to install it manually 
Install-WindowsFeature Web-Mgmt-Console

#Check all WindowsFeatures Installed 
Get-WindowsFeature | ? Installed 

Navigate to http://192.168.1.130/certsvr to Request a Certificate  CA-01

Reference Link
1. Install-AdcsWebEnrollment

Leave a Comment