The CA is an incredibly important piece of infrastructure, especially once you start issuing your own certificates. We are pushing our code signing certs, smart card certs and certs for VPN Authentication. A loss of our CA would be a very bad day.
Backup and restoration seem simple when first checking out the
Backup-CARoleService docs but there is no Microsoft documentation saying “This is everything” and that led me down a hole to find that it is indeed not everything.
C:\Windows\CAPolicy.inf controls root cert expiration length and several other critical factors, I also threw in a registry backup which I read about in this source but it does contain hostnames and such so I would not restore it on bare principle and check to see if not having the restored registry is an issue.
A critical thing I learned during testing the recovery is that Certificate Templates are not stored in the CA. They are stored in AD and then replicated to all DCs and CAs. The only thing stored of the CA itself is the list of “Templates to issue” which is not very critical and is basically just a text list.
I hit some of the issues that are listed in these microsoft docs so I recommend reading and being familiar with them.
I will need to run a restoration onto new bare metal to test out this process (as you should be doing anyway). I tested this in my homelab to some degree but need to do it in a full DR.
This script utilizes my email script submodule.
Backup ideas and tips
Cert Templates are stored in AD