.net 6 web api, autogenerate server certificate (same name as projectname)
I have a .net 6 web api project running with kestrel, which hosts an OPC UA client library (OPCLabs easyopc,based on OPCFoundation OPC UA client library). This client library is wrapped inside a nuget package, and generates its own client certificate.
My issue is that when I start the webapi project, the hosted OPC UA client manages to create its own certificate (inside the folder OPC “FoundationCertificateStoresUA Applicationscerts”), and connects to the correct server. After some time (days), I discover another certificate in this folder, called “webapi”, same name as the webapi project…