mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-22 09:37:12 +08:00
8152feec71
* Replace fuzzy search with SimpleName search if comparing DistinguishedName fails. * Added mandatory Organization Name attribute to SetSuitableDefaults(). Added Test for the special case. * Added missing O attribute to CompareDistinguishedName call * Update test * CertificateIdentifier.Find will pick the certificate with the longest duration * Find only valid certificates. * Prioritizes CA-signed certificates over self-signed certificates * Update Tests/Opc.Ua.Configuration.Tests/ApplicationInstanceTests.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Select longest remaining validity if valid, or least expired if all expired * Renamings * Improved comments, improved algo clarity and taken into account more possible cases of prioritization depending on cert validity * Comment corrected --------- Co-authored-by: romanett <romanett98@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>