https://bugs.winehq.org/show_bug.cgi?id=55165
--- Comment #3 from Hans Leidekker hans@meelstraat.net --- 0024:trace:crypt:CRYPT_ImportPublicKeyInfoEx (00359470, 00000001, 0000000000358520, 00000000, 00000000, 0000000000000000, 000000000021F538) 0024:trace:crypt:CryptInitOIDFunctionSet ("CryptDllConvertPublicKeyInfo", 0) 0024:trace:crypt:CryptGetOIDFunctionAddress (00000000010BB320, 1, "1.2.840.10045.2.1", 00000000, 000000000021F3B8, 000000000021F3C0) 0024:trace:crypt:CryptGetOIDFunctionAddress returning 0 0024:trace:crypt:CryptDecodeObjectEx (0x00000001, #0013, 0000000000358740, 65, 0x00000000, 0000000000000000, 0000000000000000, 000000000021F3B4) 0024:trace:crypt:CryptDecodeObjectEx returning 0
1.2.840.10045.2.1 = ecEncryption. #0013 = RSA_CSP_PUBLICKEYBLOB. We're looking for RSA public key info but the issuer certificate is an EC certificate. In the success case the OID is 1.2.840.113549.1.1.1 = rsaEncryption, so the decoding succeeds.
So essentially we need to add support for EC public keys in CryptImportPublicKeyInfoEx().