Good day.

I am writing a Web server like IIS. Implemented cgi and isapi extensions. By http, everything works great. But with https some troubles arise.

I accept the connection from the browser, establish a closed connection (handshake), accept the request from the browser, decode and understand that this is an isapi client. Up to this point, everything was smooth.

The web server accepting connections to work with isapi starts a child process (which already loads a specific library). This is similar to the behavior of IIS.

And here I have a difficulty. The child process receives a socket from the parent and can read and write from it. But there is data going over a secure connection. I need a CredHandle client as a parent process, that is to encode messages for the client and decode messages from it.

How to transfer CredHandle to child process?

  • What is CreadHandle? Can you HandleDuplicate help? - nick_n_a
  • CreadHandle is a client's mandate within an https connection. It has a client token. And it is needed to decrypt the message encoded by the client. HandleDuplicate did not try, since This is not an ordinary handle. - qwerty ytrewq

0