We are looking for confirmation that the ordering of the certificate chain has changed in recent Windows 11 22H2 when using the QueryContextAttributes() and CertEnumCertificatesInStore() functions.
We know that other third-party libraries return the subject/leaf certificates first and issuer/ca certificates last. However SChannel did not previously do this prior to Windows 11 22H2. We know this because several open-source projects had to make changes to accommodate this. I have documented it here https://github.com/curl/curl/issues/9706.