mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-28 22:55:49 +08:00
Fix .Net 4.6 Https client and server (#359)
- best possible fix for #189 to reenable https servers - `UA Sample Client` and `UA Sample Server` expose https server. libuv.dll is by default for x64. Change ``` <PropertyGroup> <RuntimeIdentifier>win7-x64</RuntimeIdentifier> <BaseNuGetRuntimeIdentifier>win7-x64</BaseNuGetRuntimeIdentifier> </PropertyGroup> ``` to win7-x86 if required. - fix exception in https client when setting the Timeout - fix travis build script for linux. kestrel server on ubuntu doesn't respond on ipv6Any ipaddress. - fix a timing problem in the travis script.
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
http://localhost:61211/UA/SampleClient/Basic256 -->
|
||||
<BaseAddresses>
|
||||
<ua:String>opc.tcp://localhost:61210/UA/SampleClient</ua:String>
|
||||
<ua:String>https://localhost:61212/UA/SampleClient</ua:String>
|
||||
</BaseAddresses>
|
||||
|
||||
<!--
|
||||
@@ -167,7 +168,7 @@
|
||||
<SecurityPolicies>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15</SecurityPolicyUri>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>Sign_2</SecurityMode>
|
||||
@@ -182,17 +183,17 @@
|
||||
<SecurityMode>Sign_2</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>Sign_2</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</SecurityPolicyUri>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
<ServerSecurityPolicy>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15</SecurityPolicyUri>
|
||||
</ServerSecurityPolicy>
|
||||
</SecurityPolicies>
|
||||
|
||||
|
||||
@@ -34,6 +34,36 @@
|
||||
<ua:UpdateBeforeConnect>true</ua:UpdateBeforeConnect>
|
||||
<ua:SelectedUserTokenPolicy>0</ua:SelectedUserTokenPolicy>
|
||||
</ua:ConfiguredEndpoint>
|
||||
|
||||
<!--
|
||||
Self, acting as a server endpoint:
|
||||
https://localhost:61212/UA/SampleClient // -->
|
||||
<ua:ConfiguredEndpoint>
|
||||
<ua:Endpoint>
|
||||
<EndpointUrl>https://localhost:61212/UA/SampleClient</EndpointUrl>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</SecurityPolicyUri>
|
||||
<UserIdentityTokens>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>Anonymous_0</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>UserName_1</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>Certificate_2</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<PolicyId xsi:nil="true" />
|
||||
<TokenType>IssuedToken_3</TokenType>
|
||||
<IssuedTokenType>urn:oasis:names:tc:SAML:1.0:assertion:Assertion</IssuedTokenType>
|
||||
</UserTokenPolicy>
|
||||
</UserIdentityTokens>
|
||||
<TransportProfileUri>http://opcfoundation.org/UA/profiles/transport/wsxmlorbinary</TransportProfileUri>
|
||||
</ua:Endpoint>
|
||||
<ua:UpdateBeforeConnect>true</ua:UpdateBeforeConnect>
|
||||
<ua:SelectedUserTokenPolicy>0</ua:SelectedUserTokenPolicy>
|
||||
</ua:ConfiguredEndpoint>
|
||||
|
||||
<!--
|
||||
Sample server, opc.tcp endpoint:
|
||||
@@ -64,6 +94,36 @@
|
||||
<ua:UpdateBeforeConnect>true</ua:UpdateBeforeConnect>
|
||||
<ua:SelectedUserTokenPolicy>0</ua:SelectedUserTokenPolicy>
|
||||
</ua:ConfiguredEndpoint>
|
||||
|
||||
<!--
|
||||
Sample server, opc.tcp endpoint:
|
||||
https://localhost:51212/UA/SampleServer // -->
|
||||
<ua:ConfiguredEndpoint>
|
||||
<ua:Endpoint>
|
||||
<EndpointUrl>https://localhost:51212/UA/SampleServer</EndpointUrl>
|
||||
<SecurityMode>SignAndEncrypt_3</SecurityMode>
|
||||
<SecurityPolicyUri>http://opcfoundation.org/UA/SecurityPolicy#Basic256Sha256</SecurityPolicyUri>
|
||||
<UserIdentityTokens>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>Anonymous_0</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>UserName_1</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<TokenType>Certificate_2</TokenType>
|
||||
</UserTokenPolicy>
|
||||
<UserTokenPolicy>
|
||||
<PolicyId xsi:nil="true" />
|
||||
<TokenType>IssuedToken_3</TokenType>
|
||||
<IssuedTokenType>urn:oasis:names:tc:SAML:1.0:assertion:Assertion</IssuedTokenType>
|
||||
</UserTokenPolicy>
|
||||
</UserIdentityTokens>
|
||||
<TransportProfileUri>http://opcfoundation.org/UA/profiles/transport/wsxmlorbinary</TransportProfileUri>
|
||||
</ua:Endpoint>
|
||||
<ua:UpdateBeforeConnect>true</ua:UpdateBeforeConnect>
|
||||
<ua:SelectedUserTokenPolicy>0</ua:SelectedUserTokenPolicy>
|
||||
</ua:ConfiguredEndpoint>
|
||||
|
||||
<!--
|
||||
Reference server, opc.tcp endpoint:
|
||||
|
||||
@@ -19,27 +19,12 @@
|
||||
<OldToolsVersion>3.5</OldToolsVersion>
|
||||
<UpgradeBackupLocation>
|
||||
</UpgradeBackupLocation>
|
||||
<IsWebBootstrapper>true</IsWebBootstrapper>
|
||||
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
|
||||
<SignAssembly>false</SignAssembly>
|
||||
<AssemblyOriginatorKeyFile>
|
||||
</AssemblyOriginatorKeyFile>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<TargetFrameworkProfile />
|
||||
<PublishUrl>http://localhost/Opc.Ua.SampleClient/</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Web</InstallFrom>
|
||||
<UpdateEnabled>true</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
@@ -109,6 +94,7 @@
|
||||
</EmbeddedResource>
|
||||
<Content Include="Opc.Ua.SampleClient.Config.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="Opc.Ua.SampleClient.Endpoints.xml">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
@@ -161,33 +147,6 @@
|
||||
<Name>Opc.Ua.Sample</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="app.manifest" />
|
||||
</ItemGroup>
|
||||
@@ -196,6 +155,10 @@
|
||||
<Version>4.3.3</Version>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
|
||||
<BaseNuGetRuntimeIdentifier>win7-x64</BaseNuGetRuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
|
||||
Reference in New Issue
Block a user