To rotate certificates on machines created from the Dynamics 365 for Finance and Operations downloadable VHD, complete the following steps for each certificate. Sample PowerShell scripts are provided where applicable.
-
Identify which certificates will expire in the next two months.
Get-ChildItem -path Cert:\LocalMachine\My | Where {$_.NotAfter -lt $(get-date).AddMonths(2)} | Sort NotAfter | Format-Table Subject, Thumbprint, NotAfter
-
Record the thumbprint of the certificate that needs to be replaced. You will need this in the next step.
-
Obtain a new certificate for the expired certificate.