Skip to content

Commit

Permalink
Add client certificate support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion authored and josesimoes committed Jul 20, 2019
1 parent 8bb43a0 commit 1349ed3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion M2Mqtt/Net/MqttNetworkChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public void Connect()
}
#elif (NANOFRAMEWORK_1_0)
this.sslStream.AuthenticateAsClient(this.remoteHostName,
null,
this.clientCert,
this.caCert,
MqttSslUtility.ToSslPlatformEnum(this.sslProtocol));

Expand Down
10 changes: 5 additions & 5 deletions M2Mqtt/nanoFramework.M2Mqtt.nfproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@
</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib">
<HintPath>..\packages\nanoFramework.CoreLibrary.1.2.6-preview.7\lib\mscorlib.dll</HintPath>
<HintPath>..\packages\nanoFramework.CoreLibrary.1.2.6-preview.16\lib\mscorlib.dll</HintPath>
</Reference>
<Reference Include="nanoFramework.Runtime.Events, Version=1.0.8.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.Runtime.Events.1.0.8-preview.14\lib\nanoFramework.Runtime.Events.dll</HintPath>
<HintPath>..\packages\nanoFramework.Runtime.Events.1.0.8-preview.20\lib\nanoFramework.Runtime.Events.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
<Reference Include="nanoFramework.Runtime.Native, Version=1.0.7.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.Runtime.Native.1.0.7-preview.17\lib\nanoFramework.Runtime.Native.dll</HintPath>
<HintPath>..\packages\nanoFramework.Runtime.Native.1.0.7-preview.18\lib\nanoFramework.Runtime.Native.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
<Reference Include="System.Net, Version=1.1.1.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.System.Net.1.1.1-preview.18\lib\System.Net.dll</HintPath>
<Reference Include="System.Net, Version=1.2.0.0, Culture=neutral, PublicKeyToken=c07d481e9758c731">
<HintPath>..\packages\nanoFramework.System.Net.1.2.0-preview.1\lib\System.Net.dll</HintPath>
<Private>True</Private>
<SpecificVersion>True</SpecificVersion>
</Reference>
Expand Down
8 changes: 4 additions & 4 deletions M2Mqtt/packages.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="nanoFramework.CoreLibrary" version="1.2.6-preview.7" targetFramework="netnanoframework10" />
<package id="nanoFramework.Runtime.Events" version="1.0.8-preview.14" targetFramework="netnanoframework10" />
<package id="nanoFramework.Runtime.Native" version="1.0.7-preview.17" targetFramework="netnanoframework10" />
<package id="nanoFramework.System.Net" version="1.1.1-preview.18" targetFramework="netnanoframework10" />
<package id="nanoFramework.CoreLibrary" version="1.2.6-preview.16" targetFramework="netnanoframework10" />
<package id="nanoFramework.Runtime.Events" version="1.0.8-preview.20" targetFramework="netnanoframework10" />
<package id="nanoFramework.Runtime.Native" version="1.0.7-preview.18" targetFramework="netnanoframework10" />
<package id="nanoFramework.System.Net" version="1.2.0-preview.1" targetFramework="netnanoframework10" />
<package id="Nerdbank.GitVersioning" version="3.0.19-beta" targetFramework="net462" developmentDependency="true" />
</packages>

0 comments on commit 1349ed3

Please sign in to comment.