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

◆ trustedRootCertificates

HCERTSTORE Ice::SSL::SchannelClientAuthenticationOptions::trustedRootCertificates = nullptr

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

If this field is set, the server'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
// ...
auto initData = Ice::InitializationData{
.clientAuthenticationOptions =
Ice::SSL::ClientAuthenticationOptions{.trustedRootCertificates = rootCerts}};
auto communicator = Ice::initialize(initData);
CertCloseStore(rootCerts, 0); // It is safe to close the rootCerts store now.

Definition at line 63 of file ClientAuthenticationOptions.h.