title: Use private key with Windows certficate store in gSoap
body: <p>I'm writing a gSoap client with OpenSSL that uses Windows certificates. I have a PEM certificate and a PEM private key. When I combine them into a single file and give it to gSoap it works fine:</p>
  
  <pre><code>soap_ssl_client_context( &amp;soap,
                           SOAP_SSL_DEFAULT,
                           "certkey.pem", /* required only when client must authenticate to server         */
                           NULL, /* password to read the key file (not used with GNUTLS)                 */
                           NULL, /* cacert file to store trusted certificates                            */
                           NULL, /* capath to directory with trusted certificates                        */
                           NULL  /* if randfile!=NULL: use a file with random data to seed randomness    */
                                   )
  </code></pre>
  
  <p>But when I install the certificate into the Windows storage and load it from there via X509_STORE_add_cert it does not work. My guess is that I have to use the private key somehow but I don't know in what way. What should I do?</p>