I am trying to access a certificate that was created using a C# UWP app from a managed C++ DLL within that same application. I can't however use the C# interface as I need to support SNI on this socket (As far as I can tell, UWP does not support SNI in a documented fashion that I could find; believe me, I've searched. I should also note that this is TCP, not HTTPS).
I've tried to find the UWP created certificate the "normal" wincrypt way, which is enumerating certificate stores (::CertEnumSystemStore) and then enumerating certificates (::CertEnumCertificatesInStore), as well as looked in certmgr and certutils, and can't find the certificate anywhere. Which leads me to believe that each application's certificates are cordoned off in their own silo and are only accessible via the UWP API, which doesn't allow custom control over how AcquireCredentialsHandle is called.
So my question is, is there a way of accessing the certificates created with UWP using the standard operating system encryption calls?