I recently wrote a PowerShell script that will back and replace a certificate as well assign permissions to the private keys.
Basically, what this script does is:
– First checks if the certificate you want to import exists or not
– Perform a back-up of the certificate
– Import the private certificate
– Assign the Everyone group read access on the private key
– Import the public certificate
Continue reading “Backup and replace PFX certificates in PowerShell”