>NULL: October 2023

Monday 16 October 2023

Non RDS, RDP Certificate Install

To get rid of the yellow untrusted warning when connecting to RDP. 

1, Install the cert via MMC.

2, In PowerShell run the following.
Get-Childitem Cert:\LocalMachine\My

 

3, Copy the Thumbprint and run the following replacing the word 'Thumbprint' without spaces or extra character at the beginning.

wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="Thumbprint"

Monday 2 October 2023

Cannot replace TLS/SSL Certificate on Microsoft Dynamics BC or NAV

If you get the following error when setting a new thumbprint on a BC/NAV instance:
SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists
The answer is to note down the port number in the error then use it with this command to remove the existing certificate mapping. (replace 443 with the port from the error message.)
netsh http delete sslcert ipport=0.0.0.0:443
You can now set and save the new thumbprint in your instance configuration.