'winverify trust results 2148204800 only in windows server 2012 r2 standard VM

We are doing the MSI validation using below code.

WinTrustData wtd = new WinTrustData(fileName);
Guid guidAction = new Guid(WINTRUST_ACTION_GENERIC_VERIFY_V2);
WinVerifyTrustResult result = NativeMethods.WinVerifyTrust(INVALID_HANDLE_VALUE, guidAction, wtd);
bool ret = (result == WinVerifyTrustResult.Success);

The MSI file is having proper digital sign and it is working fine in all the OS versions except windows server 2012 R2 standard. Ay suggestions or solutions will be highly appreciated.



Solution 1:[1]

We have identified that the root certificate was disabled in the certificate store and after enabling the particular root certificate of the msi file, the issue got resolved, Thank you

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 veerlas