IceSSL with Windows Certificate Store
Could you help me, please, to understand how I can force IceSSL to work with the Windows Certificate Store.
Using openssl (openssl req -x509 -newkey rsa:2048 -keyout cert.key -out cert.crc), I've created two files: cert.crc (public key) and cert.key (private server key). Based on this two files I've created pfx certificate (openssl pkcs12 -export -in cert.crc -inkey cert.key -out cert.pfx). On the server side I've added the cert.pfx via mmc.exe to the 'Trusted Root Certification Authorities" branch.
The server configuration contains the following properties:
The server runs without errors.
On the client side, I've added the cert.crc via mmc.exe to the 'Personal' branch.
If I try to create proxy to ssl endpoint without any properties like this:
Demo::ITestPrx::checkedCast(communicator->stringToProxy("test:ssl -p 10001"));
then I get an exception: "StreamSocket.cpp:452: Ice::ConnectionLostException: connection lost"
If I set the following properties on the client side:
I get an exception "SChannelEngine.cpp:740: Ice::SecurityException: security exception: IceSSL: failed to acquire credentials handle".
What am I doing wrong?