Wednesday, August 16, 2023

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

Doing winget install fails with a message "Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values."

I tried to install Windows Terminal using the command below -
C:\>winget install Microsoft.WindowsTerminal
But got the following error message instead.
Failed when searching source: msstore An unexpected error occurred while executing the command: 0x8a15005e : The server certificate did not match any of the expected values.
The following packages were found among the working sources.
Please specify one of them using the --source option to proceed.
Name             Id                        Source
-------------------------------------------------
Windows Terminal Microsoft.WindowsTerminal winget
Reason:
This is normally caused by SSL inspection used in enterprise environments.
Workaround:
C:\>winget settings --enable BypassCertificatePinningForMicrosoftStore

See below for details:
https://github.com/microsoft/winget-cli/issues/2879

No comments:

Test page for code formatting

netsh advfirewall firewall add rule name = "RPC Endpoint Mapper" dir = in action = allow protocol = TCP localport = 1...