- Bart Timmermans aka Hyper-B - http://www.bart-timmermans.nl -
Create a Root CA on Windows Server 2008 R2 core edition Part 3
Posted By Bart Timmermans On March 5, 2011 @ 1:03 am In Bitlocker,CA,Certificate Authority,Certificates,Microsoft,PKI,Root CA,Security,Windows Server 2008 | No Comments
This is the third part (Part 1 [2], Part 2 [3]) of the how-to guide on installing and configuring an offline Root Certificate Authority [4] on a Windows Server 2008 [5] R2 core edtion.
Within this part we are going to install and configure Active Directory Certificate Services (ADCS) on the Root CA. Also we are going to backup the root certificate with private key to external storage and encrypt this drive Bitlocker to go.
Prerequisites
The following must be available before using this guide:
Installation steps
1. Open the Root CA and run the following command to install Certificate Services: start /w ocsetup.exe CertificateServices /norestart /quiet
2. Check if the installation succeeded by running the following command: Dism /online /get-features /Format:Table
3. Configure Active Directory Certificate Services by running the following command: Cscript /nologo C:TempSetupCA.vbs /is /sn <RootCA netbios name> /sk 4096 /sp "RSA#Microsoft [9] Software Key Storage Provider" /sa SHA256
Note: Change <RootCA netbios name> to the netbios name of your Root CA server (in my case RootCA).
4. After the completion of step 3 type the following command to check if the configuration succeeded: type _SetupCA.log
5. Now we are going to stop the Certificate Services service by running the following command: net stop CertSvc
6. Now we are going to change the the validity period of the root certificate to 10 years by running the following command: Reg Add HKLMSYSTEMCurrentControlSetServicesCertSvcConfigurationRootCA /V ValidityPeriodUnits /t REG_DWORD /d 10 /f
Note: Change ConfigurationRootCA to ConfigurationNetbiosNameOfYourServer
7. Now start the Certificate Services service by running the following command: net start CertSvc
8. Now insert an formatted USB drive to the computer (if using VMware please allow USB drives to connect directly to the Root CA).
9. Now run the following command to backup the certificate: certutil –backupKey <drive letter of the USB drive>
10. You will need to provide a password for the P12 backup file. The password most be stored at a save location and managed by an security officer.
11. Now we are going to encrypt the drive with Bitlocker to go by running the following command: Manage-bde -on <drive letter of the USB drive> -pw <very complex password>
12. When all intermediate or issuing CAs are deployed this server must be shutdown.
In total we have the following security measures:
To provide an extra level of security (and redundancy) divide all passwords and physical drives to two security officers. When the Root CA must be started two security officers are needed to start the server.
Article printed from Bart Timmermans aka Hyper-B: http://www.bart-timmermans.nl
URL to article: http://www.bart-timmermans.nl/create-a-root-ca-on-windows-server-2008-r2-core-edition-part-3/
URLs in this post:
[1] Image: http://www.bart-timmermans.nl/wp-content/uploads/2009/10/banner-r2_2-744204.jpg
[2] Part 1: http://www.bart-timmermans.nl/how-to-create-a-root-ca-on-windows-server-2008-r2-core-edition/
[3] Part 2: http://www.bart-timmermans.nl/create-a-root-ca-on-windows-server-2008-r2-core-edition-part2/
[4] Certificate Authority: http://www.bart-timmermans.nl/category/certificate-authority/
[5] Windows Server 2008: http://www.bart-timmermans.nl/category/windows-server-2008/
[6] click here: http://blogs.technet.com/b/pki/archive/2009/09/18/automated-ca-installs-using-vb-script-on-windows-server-2008-and-2008r2.aspx
[7] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/5-Install-ADCS.png
[8] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/7-Check-ADCS-installation-2.png
[9] Microsoft: http://www.bart-timmermans.nl/category/microsoft/
[10] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/10-Check-ADCS-config-2.png
[11] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/12-Net-stop-Certsvc.png
[12] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/13-Add-regkey-validity.png
[13] Image: http://www.bart-timmermans.nl/wp-content/uploads/2011/03/14-Net-start-CertSvc.png
Click here to print.
Copyright © 2009 Bart Timmermans. All rights reserved.