Winget 0x8a15005e : The server certificate did not match any of the expected values

When you try to install a package from winget source (https://cdn.winget.microsoft.com/cache) with something like:
winget install NartacSoftwareInc.IISCryptoCLI

you get the following error:
========================
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.
========================

To fix, type:
winget settings --enable BypassCertificatePinningForMicrosoftStore

Now try the install again and it should go through:
winget install NartacSoftwareInc.IISCryptoCLI

NOTES:
https://learn.microsoft.com/en-us/windows/package-manager/#windows-package-manager-for-enterprise-security