Preparing the Certificate Environment

In preparation for the following pages the directory structure to manage key pairs, certificate signing requests, signed certificates, etc. needs to be set up. For this, save the following lines as a PowerShell (.ps1) script adjusting the drive letter in the first line and run it:

cd d:\
New-Item -ItemType "directory" -Path . -Name "certificate-environment"
cd certificate-environment
New-Item -ItemType "directory" -Path . -Name "certificate-authority"
New-Item -ItemType "directory" -Path . -Name "requesting-party"
cd requesting-party
New-Item -ItemType "directory" -Path "certs", "csr", "private"
cd ../certificate-authority
New-Item -ItemType "directory" -Path "certs", "crl", "csr", "newcerts", "private", "signedcerts"
New-Item -ItemType "file" -Name "serial" -Value "1000"
New-Item -ItemType "file" -Name "index.txt"

The script creates the following directory structure (on your D: drive):

d:\
┣━ certificate-environment/
┃  ┣━ certificate-authority/
┃  ┃  ┣━ certs/
┃  ┃  ┣━ crl/
┃  ┃  ┣━ csr/
┃  ┃  ┣━ newcerts/
┃  ┃  ┣━ private/
┃  ┃  ┣━ signedcerts/
┃  ┃  ┣━ index.txt
┃  ┃  ┗━ serial
┃  ┗━ requesting-party/
┃     ┣━ certs/
┃     ┣━ csr/
┃     ┗━ private/
⁞

Continue Reading

With the environment for the Certificate Authority set-up, you can add the Configuration Files.