if (subjectName.Contains("=") || !certificate.Subject.Equals("CN=" + subjectName))
Server was first started with subjectName = "Example-Server" --> Example-Server cert is created.
Afterwards I start the Server with subjectName = "Example" --> Example-Server cert is loaded. I expected that it generates a new cert ("Example").
https://github.com/OPCFoundation/UA-.NET/blob/09fc41442d9d1493b194e3649c8b2337b4d2ae02/Stack/Core/Security/Certificates/DirectoryCertificateStore.cs#L421
This line should be replaced with:
if (subjectName.Contains("=") || !certificate.Subject.Equals("CN=" + subjectName))
Server was first started with subjectName = "Example-Server" --> Example-Server cert is created. Afterwards I start the Server with subjectName = "Example" --> Example-Server cert is loaded. I expected that it generates a new cert ("Example").