improve cert handling of sample apps

- create self signed cert on first start (kudos to bouncy castle)
- fix path handling in many areas,
- ./ or ../ is treated as rooted dir
- special %LocalFolder% for UWP apps to allow to write certs in app temp storage
- all batch helpers to create certs removed
This commit is contained in:
Martin Regen
2016-12-07 18:29:24 +01:00
parent 07b70aeae0
commit 2148d65084
42 changed files with 642 additions and 305 deletions
@@ -4,8 +4,8 @@
xmlns="http://opcfoundation.org/UA/SDK/Configuration.xsd"
schemaLocation="./Schema/ApplicationConfiguration.xsd"
>
<ApplicationName>Opc.Ua.SampleServer</ApplicationName>
<ApplicationUri>urn:localhost:OPCFoundation:SampleServer</ApplicationUri>
<ApplicationName>UA Core Sample Server</ApplicationName>
<ApplicationUri>urn:localhost:OPCFoundation:CoreSampleServer</ApplicationUri>
<ProductUri>http://opcfoundation.org/UA/SampleServer</ProductUri>
<ApplicationType>Server_0</ApplicationType>
@@ -15,7 +15,7 @@
<ApplicationCertificate>
<StoreType>Directory</StoreType>
<StorePath>OPC Foundation/CertificateStores/MachineDefault</StorePath>
<SubjectName>UA Sample Server</SubjectName>
<SubjectName>UA Core Sample Server</SubjectName>
</ApplicationCertificate>
<!-- Where the issuer certificate are stored (certificate authorities) -->
@@ -180,9 +180,8 @@
</Extensions>
<TraceConfiguration>
<OutputFilePath>Logs/Opc.Ua.SampleServer.log.txt</OutputFilePath>
<OutputFilePath>./Logs/Opc.Ua.SampleServer.log.txt</OutputFilePath>
<DeleteOnLoad>true</DeleteOnLoad>
<TraceMasks>0</TraceMasks>
<!-- Show Only Errors -->
<!-- <TraceMasks>1</TraceMasks> -->
<!-- Show Only Security and Errors -->