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
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 wingetReason:
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
Comments