Skip to content

Check clientCertFile and caCertFile using string.IsNullOrEmpty - #4

Open
rpiper wants to merge 1 commit into
GeoSCADA:masterfrom
SignalFire-Telemetry:bugfix/clientCertificate
Open

Check clientCertFile and caCertFile using string.IsNullOrEmpty#4
rpiper wants to merge 1 commit into
GeoSCADA:masterfrom
SignalFire-Telemetry:bugfix/clientCertificate

Conversation

@rpiper

@rpiper rpiper commented Nov 22, 2024

Copy link
Copy Markdown

This fixes a bug causing the clientCertFile to not be used when it should be for TLS/SSL connections.

The fix is to use:
(!string.IsNullOrEmpty(c.clientCertFile))

instead of:
(c.clientCertFile == null)

when checking whether to include the client certificate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant