Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
awcullen committed Aug 29, 2023
2 parents f5de4e0 + 4013c0f commit 4a4c051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UaClient/ServiceModel/Ua/Channels/ClientSessionChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ protected override async Task OnOpenAsync(CancellationToken token = default)
LocalPrivateKey = tuple.Key;
}

var cert = _certificateParser.ReadCertificate(RemoteCertificate);
var cert = RemoteCertificate != null ? _certificateParser.ReadCertificate(RemoteCertificate) : null;
RemotePublicKey = cert?.GetPublicKey() as RsaKeyParameters;

var createSessionRequest = new CreateSessionRequest
Expand Down

0 comments on commit 4a4c051

Please sign in to comment.