App.config 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?xml version="1.0"?>
  2. <configuration>
  3. <configSections>
  4. <section name="UaApplicationConfiguration" type="UnifiedAutomation.UaBase.ApplicationConfigurationSection,UnifiedAutomation.UaBase"/>
  5. </configSections>
  6. <UaApplicationConfiguration>
  7. <SecuredApplication xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://opcfoundation.org/UA/2011/03/SecuredApplication.xsd" xmlns:ua="http://opcfoundation.org/UA/2008/02/Types.xsd">
  8. <!-- Identify the Application -->
  9. <ApplicationName>UaServerNET</ApplicationName>
  10. <ApplicationUri>urn:localhost:UnifiedAutomation:UaGettingStartedServerNet</ApplicationUri>
  11. <ApplicationType>Server_0</ApplicationType>
  12. <!-- Specify location of Certificates and Trust Lists -->
  13. <ApplicationCertificate>
  14. <StoreType>Directory</StoreType>
  15. <StorePath>%CommonApplicationData%\unifiedautomation\UaSdkNetBundleEval\pkiserver\own</StorePath>
  16. <SubjectName>CN=GettingStartedServer/O=UnifiedAutomation/DC=localhost</SubjectName>
  17. <ValidationOptions>0</ValidationOptions>
  18. </ApplicationCertificate>
  19. <TrustedCertificateStore>
  20. <StoreType>Directory</StoreType>
  21. <StorePath>%CommonApplicationData%\unifiedautomation\UaSdkNetBundleEval\pkiserver\trusted</StorePath>
  22. <ValidationOptions>0</ValidationOptions>
  23. </TrustedCertificateStore>
  24. <IssuerCertificateStore>
  25. <StoreType>Directory</StoreType>
  26. <StorePath>%CommonApplicationData%\unifiedautomation\UaSdkNetBundleEval\pkiserver\issuers</StorePath>
  27. <ValidationOptions>0</ValidationOptions>
  28. </IssuerCertificateStore>
  29. <RejectedCertificatesStore>
  30. <StoreType>Directory</StoreType>
  31. <StorePath>%CommonApplicationData%\unifiedautomation\UaSdkNetBundleEval\pkiserver\rejected</StorePath>
  32. <ValidationOptions>0</ValidationOptions>
  33. </RejectedCertificatesStore>
  34. <!-- Specify Endpoints the Server will use -->
  35. <BaseAddresses>
  36. <BaseAddress>opc.tcp://localhost:48030</BaseAddress>
  37. <!--
  38. Uncomment this line to enable the HTTPS based profiles.
  39. This profile works but is not officially supported in this version of the SDK.
  40. This is the HTTP based protocol that will be supported by embedded devices.
  41. Enabling this profile requires that you have a HTTPS certificate issued by a certificate authority
  42. in your root certificate store. You can create your own authority and add it to the root store or
  43. you can use authorities like VeriSign or Thawte.
  44. -->
  45. <!--
  46. <BaseAddress>https://localhost:48031/</BaseAddress>
  47. -->
  48. <!--
  49. Uncomment this line to enable the WS-Secure Conversation based profiles.
  50. This profile works but is not officially supported since it is not practical to support on embedded devices.
  51. You should not enable this protocol unless you have an application that must support XML Web Services.
  52. -->
  53. <!--
  54. <BaseAddress>http://localhost:48032/wssecurity/</BaseAddress>
  55. -->
  56. </BaseAddresses>
  57. <!-- Specify the SecurityProfiles the Server supports -->
  58. <SecurityProfiles>
  59. <SecurityProfile>
  60. <ProfileUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</ProfileUri>
  61. <Enabled>true</Enabled>
  62. </SecurityProfile>
  63. <SecurityProfile>
  64. <ProfileUri>http://opcfoundation.org/UA/SecurityPolicy#None</ProfileUri>
  65. <Enabled>true</Enabled>
  66. </SecurityProfile>
  67. </SecurityProfiles>
  68. <!-- Specify Configuration for Different Components (Can include 'YourCompany' Configuration) -->
  69. <Extensions>
  70. <!-- Specify the Trace settings for the Application -->
  71. <Extension>
  72. <TraceSettings xmlns="http://unifiedautomation.com/schemas/2011/12/Application.xsd" MasterTraceEnabled="false" DefaultTraceLevel="Info">
  73. <TraceFile>%CommonApplicationData%\unifiedautomation\logs\UaSdkNetBundleEval\UaGettingStartedServerNet.log.txt</TraceFile>
  74. <MaxEntriesPerLog>100000</MaxEntriesPerLog>
  75. <MaxLogFileBackups>3</MaxLogFileBackups>
  76. <ModuleSettings>
  77. <ModuleTraceSettings ModuleName="UnifiedAutomation.Stack"/>
  78. <ModuleTraceSettings ModuleName="UnifiedAutomation.Server"/>
  79. </ModuleSettings>
  80. </TraceSettings>
  81. </Extension>
  82. <!-- Specify Settings when EXE is run with the /install argument -->
  83. <Extension>
  84. <InstallationSettings xmlns="http://unifiedautomation.com/schemas/2011/12/Application.xsd">
  85. <GenerateCertificateIfNone>true</GenerateCertificateIfNone>
  86. <DeleteCertificateOnUninstall>true</DeleteCertificateOnUninstall>
  87. </InstallationSettings>
  88. </Extension>
  89. <!-- Specify Settings for the ServerManager -->
  90. <Extension>
  91. <ServerSettings xmlns="http://unifiedautomation.com/schemas/2011/12/Application.xsd">
  92. <ProductName>UnifiedAutomation GettingStartedServer</ProductName>
  93. <DiscoveryRegistration>
  94. <Enabled>false</Enabled>
  95. </DiscoveryRegistration>
  96. </ServerSettings>
  97. </Extension>
  98. <Extension>
  99. <SessionSettings xmlns="http://unifiedautomation.com/schemas/2011/12/Application.xsd">
  100. <MaxSessionCount>100</MaxSessionCount>
  101. </SessionSettings>
  102. </Extension>
  103. <!-- Specify Settings for the SubscriptionManager -->
  104. <Extension>
  105. <SubscriptionSettings xmlns="http://unifiedautomation.com/schemas/2011/12/Application.xsd">
  106. <MaxSubscriptionCount>500</MaxSubscriptionCount>
  107. </SubscriptionSettings>
  108. </Extension>
  109. </Extensions>
  110. </SecuredApplication>
  111. </UaApplicationConfiguration>
  112. </configuration>