D365 Solution for Cloud Dev machine show error ' The remote certificate is invalid according to the validation procedure. '
You are getting 'The remote certificate is invalid according to the validation procedure.'Error show with all reports and tired Rotate SSL Certificate but not complete.
Navigate to Lifecycle Services.
In the Shared Asset library, click the Model
Download the Renew WinRM certificate folder
RDP to the environment
Extract the zip file to a local folder
Open mmc.exe and add Certificate snap-in (Computer)
Open Personal\Certificates and locate the certificate with your VMs name which should have the expiration date passed
Browse to the RenewWinRMCertificate folder that was previously created from extracting the zip file
Select File > Open Windows PowerShell with elevated privileges (Run as Administrator)
Run .\VirtualMachine-RegenerateWinRMCertificate.ps1 from the folder
Refresh the Certificates console and confirm the Certificate has been created and the expiration date is now valid. (Optional: Delete expired certificate to avoid confusion)
Restart the Environment from LCS (Stop \ Start)
In LCS select Maintain > Rotate secrets
Select 'Rotate the SSL certificates'
1: Configure Network Security Rules>Go to Network Security Group of the Azure VM and change 'powershell-remote-rule' from Deny to Allow (this is just temporary; we will change it back after completing the rotation).
Published on:
Learn more