Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Add ECC Certificates to various tests #2961

Merged
merged 12 commits into from
Feb 11, 2025
Prev Previous commit
Next Next commit
reenable check of certificate
  • Loading branch information
romanett committed Jan 23, 2025
commit 6f3102ab06a5ccf0cfecdd7ddd592b6f5e74f0a1
10 changes: 4 additions & 6 deletions Tests/Opc.Ua.Gds.Tests/PushTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,12 @@

using System;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NUnit.Framework;
using Opc.Ua.Client;
using Opc.Ua.Gds.Client;
using Opc.Ua.Gds.Server;
using Opc.Ua.Security.Certificates;
using Opc.Ua.Test;
Expand Down Expand Up @@ -761,10 +759,10 @@ private void VerifyNewPushServerCert(byte[] certificateBlob)
m_pushClient.PushClient.Connect(m_pushClient.PushClient.EndpointUrl).GetAwaiter().GetResult();
// compare leaf certificates, ServerCertificate might be a chain if sendCertChain is sets
var serverCertificate = Utils.ParseCertificateBlob(m_pushClient.PushClient.Session.ConfiguredEndpoint.Description.ServerCertificate);
//Assert.AreEqual(
// certificateBlob,
// serverCertificate.RawData
// );
Assert.AreEqual(
certificateBlob,
serverCertificate.RawData
);
}

private async Task<bool> AddTrustListToStore(SecurityConfiguration config, TrustListDataType trustList)
Expand Down
Loading