Invoke D365WinRmCertificateRotation - FH-Inway/d365fo.tools GitHub Wiki
Rotate the certificate used for WinRM
Invoke-D365WinRmCertificateRotation [[-MachineName] <String>] [<CommonParameters>]
There is a scenario where you might need to update the certificate that is being used for WinRM on your Tier1 environment
1 year after you deploy your Tier1 environment, the original WinRM certificate expires and then LCS will be unable to communicate with your Tier1 environment
Invoke-D365WinRmCertificateRotation
This will update the certificate that is being used by WinRM. A new certificate is created with the current computer name. The new certificate and its thumbprint will be configured for WinRM to use that going forward.
The DNS / Netbios name of the machine
The default value is: "$env:COMPUTERNAME" which translates into the current name of the machine
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $env:COMPUTERNAME
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Mötz Jensen (@Splaxi)
We recommend that you do a full restart of the Tier1 environment when done.