I'm using OpenSSL in C++ under Windows to implement an SSL client. So my goal is to use a certificate installed in the certificate store to do the handshake with the server.
Now, the problem is that as the private key is non-exportable I can't use it directly in a call like SSL_CTX_use_PrivateKey
.
So far I tried to use the CAPI engine to do the handhshake, but I haven't figured out how to set the private key in the SSL context.
Thanks