Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ trustedRootCertificates

HCERTSTORE Ice::SSL::SchannelServerAuthenticationOptions::trustedRootCertificates = nullptr

The trusted root certificates used for validating the client's certificate chain.

If this field is set, the client's certificate chain is validated against these certificates; otherwise, the system's default root certificates are used.

Example of setting trustedRootCertificates:

HCERTSTORE rootCerts = {};
// Populate root certs with X.509 trusted root certificates
// ...
communicator->createObjectAdapterWithEndpoints(
"Hello",
"ssl -h 127.0.0.1 -p 10000",
Ice::SSL::ServerAuthenticationOptions{.trustedRootCertificates = rootCerts});
CertCloseStore(rootCerts, 0); // It is safe to close the rootCerts store now.

Definition at line 67 of file ServerAuthenticationOptions.h.