Add HistorianClientOptions.AllowUntrustedServerCertificate
When true, the SDK's WCF channel factories accept the server's X.509 certificate without chain validation. Intended for connecting to development / on-prem Historians whose /HistCert endpoint presents an installer-generated self-signed cert that isn't in the local trust store. Particularly relevant on Linux: .NET WCF on Linux does its own X509Chain validation that doesn't honor the system CA bundle, so even after `update-ca-certificates` succeeds the cert binding still rejects the server. With this option set, custom certificate validator accepts any cert and revocation checking is disabled. Default false. Centralized in HistorianWcfClientCredentialsHelper.Configure and applied at every ChannelFactory<T> instantiation in the WCF layer (no-op when the option is false). 171/171 Windows tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -179,6 +179,7 @@ internal sealed class HistorianWcfReadOrchestrator
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
ChannelFactory<IRetrievalServiceContract2> retrievalFactory = new(binding, retrievalEndpoint);
|
||||
HistorianWcfClientCredentialsHelper.Configure(retrievalFactory, _options);
|
||||
|
||||
try
|
||||
{
|
||||
@@ -280,6 +281,7 @@ internal sealed class HistorianWcfReadOrchestrator
|
||||
CancellationToken cancellationToken)
|
||||
{
|
||||
ChannelFactory<IRetrievalServiceContract2> retrievalFactory = new(binding, retrievalEndpoint);
|
||||
HistorianWcfClientCredentialsHelper.Configure(retrievalFactory, _options);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user