CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Posts
    66

    How to set a temporary truststore for WinHttp

    Hi all,

    we use WinHttp with SSL enabled for secure client/server connections. We have a private PKI and need to import our CA certificate into an appropriate truststore, so the SSL handshake runs through. Preparing a truststore outside the application is no option. We started with temporarily importing the CA certificate into the system certstore, but of course this fails for users without admin rights. We didn't like this approach, because it side effects all other applications accessing the system truststore, but saw no other choice to achieve our goal.

    My questions are:
    - can we create a temporary truststore and tell WinHttp to use this truststore for the SSL handshake?
    - if not, what other choice do we have?

    Thanks for your help,
    Emil
    Last edited by guitz; July 11th, 2006 at 06:59 AM.

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: How to set a temporary truststore for WinHttp

    I think yes, thats possible.

    Take a look at this article,
    http://www.codeguru.com/Cpp/I-N/inte...icle.php/c6211
    Regards,
    Ramkrishna Pawar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured